private void OnTowerDeactivation(ITower tower, APIActivator activator) { if (!HasTower(tower)) { return; } switch (activator) { case APIActivator.XANA: XanaTowers.Remove(tower); if (XanaTowers.Count == 0) { onXanaDefeat(); } break; case APIActivator.HOPPER: HopperTowers.Remove(tower); break; case APIActivator.JEREMIE: JeremieTowers.Remove(tower); break; } }
private void OnTowerActivation(ITower tower, APIActivator activator) { if (HasTower(tower)) { return; } switch (activator) { case APIActivator.XANA: if (XanaTowers.Count == 0) { onXanaAwaken(); } XanaTowers.Add(tower); break; case APIActivator.HOPPER: HopperTowers.Add(tower); break; case APIActivator.JEREMIE: JeremieTowers.Add(tower); break; } }