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