public void GetDamage(int amount) { currentHealth -= amount; if (currentHealth <= 0) { Debug.Log("DEATH OF " + gameObject.name); Debug.Log("DEATH HAS BEEN RAISED!"); deathEvent.Raise(gameObject); deathAction.Do(gameObject); } }
private void AnswerTheCall() { deathAction.Do(gameObject); }