What did the bool for canMove do?

by adding the bool to this, does this just mean “this script is active”, so when we added the DisableControls and made it false, it then means “this script is no longer active”

I was a little confused because I was thinking under DisableControls we’d need to add code to disable RotatePlayer and RespondToBoost

The script remains active. However, when Update runs, it will only execute the bits inside the if statement if canMove is true. When we disable controls, canMove becomes false, and RotatePlayer() and RespondToBoost() will not execute

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms