Пример #1
0
 void Start()
 {
     SpawnerScript = GetComponent <D_EnemySpawnerScript>();
     EnemyObjList  = SpawnerScript.EnemyObjects;
     WaveText.gameObject.SetActive(false);
     spawning        = false;
     SpawnPointsList = GameObject.FindGameObjectsWithTag("SpawnPoint");
 }
Пример #2
0
 // Start is called before the first frame update
 void Awake()
 {
     if (current == null)
     {
         current = this;
     }
     else
     {
         Destroy(this.gameObject);
         return;
     }
 }