override public void Awake() { GetAIController(); m_storeHostile = GetComponent <StoreHostile>(); m_agent = GetComponentInParent <NavMeshAgent>(); m_startSpeed = m_agent.speed; }
private void Awake() { m_storeHostile = GetComponentInChildren <StoreHostile>(); if (m_updateHostiles) { InvokeRepeating("FindHostiles", 0, 0.5f); } else { FindHostiles(); } }
private void Awake() { storeHostile = GetComponent <StoreHostile>(); }