Esempio n. 1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.O))
     {
         gameManagerMaster.CallEventGameOver();
     }
 }
Esempio n. 2
0
 void DecreaseHealth(int healthChange)
 {
     playerHealth -= healthChange;
     if (playerHealth <= 0)
     {
         playerHealth = 0;
         gameManagerMaster.CallEventGameOver();
     }
     SetUI();
 }