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