Esempio n. 1
0
    void Update()
    {
        if (StateManager.STATE != StateManager.State.inGame)
        {
            return;
        }

        if (Input.GetButtonDown("DiveLeft"))
        {
            diver.DiveLeft();
        }
        else if (Input.GetButtonDown("DiveRight"))
        {
            diver.DiveRight();
        }
    }