We will only be making a single script in this section. It will move the tank in a similar manner to the ChassisControls
script we created in the last chapter. The difference is, we won't have to hold down a button for the boost to work. Let's get to it.
TurboBoost
.CharacterController
. We need this for movement. The second is how fast we will be moving while boosting. The third is how long, in seconds, we will be boosting. The last is used internally for whether or not we can boost and when we should stop.public CharacterController controller; public float boostSpeed = 50; public float ...
No credit card required