// Use this for initialization void Start() { m_navigationAgent = GetComponent <NavigationAgentComponent_Batch>(); if (m_navigationAgent.PathTerrain == null || !(m_navigationAgent.PathTerrain is PathGrid)) { Debug.LogError("Interaction_Touch was built to work with a PathGrid terrain; can't use it on other terrain types."); } else { m_pathGrid = m_navigationAgent.PathTerrain as PathGrid; } }
void Awake() { m_bNavRequestCompleted = true; m_navigationAgent = GetComponent <NavigationAgentComponent_Batch>(); }
void Awake() { m_navigationAgent = GetComponent <NavigationAgentComponent_Batch>(); }