Exemple #1
0
 protected override void getDefeated()
 {
     foreach (NodeController attackNode in TargetNodes)
     {
         attackNode.storedDamage -= 1;
         if (attackNode.storedDamage <= 0)
         {
             attackNode.dangerous = false;
         }
     }
     CharacterSprite.SetActive(false);
     //healthBar.gameObject.SetActive(false);
     //stunEffect.SetActive(false);
     currentNode.GetComponent <NodeController>().occupant = null;
     currentNode = null;
     knockedOut  = true;
 }