void Start() { if (Instance == null) { Instance = this; Instance.enemiesOnScene = new List <GameObject>(); Instance.StartupSpawn(); } else { Destroy(gameObject); } }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; theOvermindScript = GameObject.Find("SpawnControl").GetComponent <SpawnControler>(); }