void OnUnitDestroyed(Unit unit) { if (unit.IsCreep()) { if (unit.GetUnitCreep().lifeValue > 0) { GainLife(unit.GetUnitCreep().lifeValue); } } else if (unit.IsTower()) { if (unit.GetUnitTower() == selectedTower) { _ClearSelectedTower(); } } }
void OnUnitDestroyed(Unit unit) { if (!unit.IsCreep()) { return; } UnitCreep creep = unit.GetUnitCreep(); OnUnitCleared(creep); }
public static void OnUnitDestroyed(Unit unit) { if (unit.IsCreep()) { if (onCreepDestroyedE != null) { onCreepDestroyedE(unit.GetUnitCreep()); } } else if (!unit.IsTower()) { if (onTowerDestroyedE != null) { onTowerDestroyedE(unit.GetUnitTower()); } } }
void OnUnitDestroyed(Unit unit) { if(!unit.IsCreep()) return; UnitCreep creep=unit.GetUnitCreep(); OnUnitCleared(creep); }
void OnUnitDestroyed(Unit unit) { if(unit.IsCreep()){ if(unit.GetUnitCreep().lifeValue>0) GainLife(unit.GetUnitCreep().lifeValue); } else if(unit.IsTower()){ if(unit.GetUnitTower()==selectedTower) _ClearSelectedTower(); } }
public static void OnUnitDestroyed(Unit unit) { if (unit.IsCreep()) { if (onCreepDestroyedE != null) onCreepDestroyedE(unit.GetUnitCreep()); } else if (!unit.IsTower()) { if (onTowerDestroyedE != null) onTowerDestroyedE(unit.GetUnitTower()); } }
void OnUnitDestroyed(Unit unit) { if(unit.IsCreep()){ GainScore(unit.GetUnitCreep().scoreValue); } else if(unit.IsTower()){ if(unit.GetUnitTower()==selectedTower) _ClearSelectedTower(); } }