Esempio n. 1
0
 void Update()
 {
     if (Input.GetButton("Switch"))
     {
         ResetLevel();
     }
     if (Input.GetButtonDown("Jump") && titleScreen)
     {
         NextLevel();
     }
     if (Input.GetButtonDown("Jump") && !controllingPlayer)
     {
         if (cursorController.phasing)
         {
             cursorController.PhaseOff();
         }
         else
         {
             cursorController.PhaseOn();
         }
     }
 }