Exemplo n.º 1
0
    void FixedUpdate()
    {
        TurnWheels();

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

        Raycast();
        //RollToSurface();
    }
Exemplo n.º 2
0
 void Update()
 {
     statsManager.Update(this);
     driveState = driveState.HandleInput(this);
     driveState = driveState.Update(this);
 }