コード例 #1
0
 public void DepleteHealth(int damage)
 {
     currentHealth -= damage;
     Debug.Log("Damaging " + this.gameObject);
     HealthManager.CheckPlayerHealth(this.gameObject, currentHealth);
     UpdateCanvasHealth(currentHealth);
 }