void FixedUpdate() { TurnWheels(); if (carState != null) { CarState newState = carState.Update(); SwitchCarState(newState); } Raycast(); //RollToSurface(); }
void Update() { statsManager.Update(this); driveState = driveState.HandleInput(this); driveState = driveState.Update(this); }