public void DepleteHealth(int damage) { currentHealth -= damage; Debug.Log("Damaging " + this.gameObject); HealthManager.CheckPlayerHealth(this.gameObject, currentHealth); UpdateCanvasHealth(currentHealth); }