示例#1
0
    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);
 }