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