public void DestroyAllEnemyTanks() { EnemyTanks.RemoveAll(pr => { GameObject.Destroy(pr.gameObject); return(true); }); EnemyTanks.Clear(); }
public void Clear() { EnemyTanks.Clear(); EnemySamolets.Clear(); EnemyCopters.Clear(); EnemyZeneitkas.Clear(); EnemyRemonts.Clear(); Facility = null; Squad = null; TagetSquad = 0; IsEnemyCell = false; IsFight = false; }