Beispiel #1
0
 public void ClearAll()
 {
     foreach (GameObject enemy in GeneralPool.get_enemyList())
     {
         Destroy(enemy);
     }
     foreach (GameObject tower in GeneralPool.get_towerList())
     {
         Destroy(tower);
     }
     GeneralPool.resetPool();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     GeneralPool.resetPool();
     gateCount = gateList.Count;
     foreach (GameObject gate in gateList)
     {
         GeneralPool.addToTowerList(gate);
     }
     uiHelper        = GetComponent <UIHelper>();
     towerController = GetComponent <TowerController>();
     enemyController = GetComponent <EnemyController>();
     enemySpawner    = GetComponent <EnemySpawner>();
     currentRound    = 0;
     toStep0();
 }