コード例 #1
0
 void deductHealth(int damage)
 {
     health -= damage;
     checkIfHealthLow();
     if (health <= 0 && !isExploding)
     {
         isExploding = true;
         destructibleManagerMasterScript.callDestroyMeEvent();
     }
 }