void Start() { gameObject.SetActive(false); Invoke("Spawn", 0.5f); EC = GameObject.Find("EnemiesCollector").GetComponent <EnemiesCollector>(); //Debug.Log(GetComponent<NavMeshAgent>().agentTypeID); }
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; }