void Awake() { MakeInstance(); enemySpawner = GetComponent <EnemySpawner>(); bossSpawnController = GameObject.Find("Boss Spawn Controller") .GetComponent <BossSpawnController>(); }
private void Awake() { m_nmaNavMeshAgent = GetComponent <NavMeshAgent>(); m_goPlayerOne = GameObject.FindGameObjectWithTag("PlayerOne"); m_goPlayerTwo = GameObject.FindGameObjectWithTag("PlayerTwo"); m_scShopController = GameObject.FindGameObjectWithTag("GameController").GetComponent <ShopController>(); m_rcRoundController = GameObject.FindGameObjectWithTag("GameController").GetComponent <RoundController>(); m_bscBossSpawnController = GameObject.FindGameObjectWithTag("GameController").GetComponent <BossSpawnController>(); m_csCameraScript = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraScript>(); m_goCurrentTarget = m_goPlayerOne; m_bTurretTimer = m_bscBossSpawnController.m_bDefaultTurretTimer; m_bDroneTimer = m_bscBossSpawnController.m_bDefaultDroneTimer; m_bScuttlerTimer = m_bscBossSpawnController.m_bDefaultScuttlerTimer; m_fPlayerSafeBubbleSize = 1.3f; }