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