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