protected override void EndingPlayerTurn() { Effect(); TurnsRemaining--; TargetsAffected.Clear(); if (TurnsRemaining <= 0) { Destroy(gameObject); } }
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); } } }