Esempio n. 1
0
 internal void SetHp(int nextHp, GameObject source, IDestructible destructibleSource)
 {
     health = nextHp;
     if (health <= 0)
     {
         destructibleSource.OnObjDestroyed();
         GameObject.Destroy(source);
     }
 }