Esempio n. 1
0
 // Constructor simply assigns references to the stalker passed in
 public State_Stalker_Wander(Character_Stalker stalker)
 {
     m_stalker      = stalker;
     m_stalkerMotor = m_stalker.GetComponent <Motor_Stalker>();
     m_stalkerAgent = m_stalker.GetComponent <NavMeshAgent>();
     m_activePoints = new Navigation.ActivePoints();
 }
Esempio n. 2
0
 public State_Stalker_Pursue(Character_Stalker stalker)
 {
     m_stalker      = stalker;
     m_stalkerMotor = m_stalker.GetComponent <Motor_Stalker>();
     m_stalkerAgent = m_stalker.GetComponent <NavMeshAgent>();
 }