예제 #1
0
    void FixedUpdate()
    {
        TurnWheels();

        if (carState != null)
        {
            CarState newState = carState.Update();
            SwitchCarState(newState);
        }

        Raycast();
        //RollToSurface();
    }
예제 #2
0
 void Update()
 {
     statsManager.Update(this);
     driveState = driveState.HandleInput(this);
     driveState = driveState.Update(this);
 }