Ejemplo n.º 1
0
 // 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;
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     m_bNavRequestCompleted = true;
     m_navigationAgent      = GetComponent <NavigationAgentComponent_Batch>();
 }
Ejemplo n.º 3
0
 void Awake()
 {
     m_navigationAgent = GetComponent <NavigationAgentComponent_Batch>();
 }