Esempio n. 1
0
 internal void Activate(EnemyWaveManager manager, Pooler pool)
 {
     this.manager = manager;
     totalEnemy   = enemigos.Count;
     for (int i = 0; i < totalEnemy; i++)
     {
         currentEnemy = pool.SpawnObjeto(enemigos[i].enemigo);
         currentEnemy.Reiniciar();
         currentEnemy.SubscribirCaller(this);
         currentEnemy.transform.position = enemigos[i].spawnPosition;
     }
 }