// 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(); }
public State_Stalker_Pursue(Character_Stalker stalker) { m_stalker = stalker; m_stalkerMotor = m_stalker.GetComponent <Motor_Stalker>(); m_stalkerAgent = m_stalker.GetComponent <NavMeshAgent>(); }