Beispiel #1
0
 void Start()
 {
     gameObject.SetActive(false);
     Invoke("Spawn", 0.5f);
     EC = GameObject.Find("EnemiesCollector").GetComponent <EnemiesCollector>();
     //Debug.Log(GetComponent<NavMeshAgent>().agentTypeID);
 }
Beispiel #2
0
 void Start()
 {
     Instance = FindObjectOfType <GameController>();
     youWin   = false;
     gameOver = false;
     pause    = true;
     loading  = true;
     //RemoveDoors();
     EC = GameObject.FindGameObjectWithTag("EnemiesCollector").GetComponent <EnemiesCollector>();
     Invoke("bossSpawn", 1); //temporary
     LoadingScreenUI.SetActive(true);
     LoadingBar.Instance.Progress += 1;
 }