Esempio n. 1
0
 protected override void EndingPlayerTurn()
 {
     Effect();
     TurnsRemaining--;
     TargetsAffected.Clear();
     if (TurnsRemaining <= 0)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         TargetsAffected.Add(other.gameObject);
     }
     else if (other.gameObject.CompareTag("AOE"))
     {
         if (IsOpposedElement(other.gameObject.GetComponent <AOEScript>().damageType))
         {
             Destroy(gameObject);
         }
     }
 }