protected virtual void Awake() { m_conversationState = new State_Conversation(this); m_animator = this.gameObject.GetComponent <Animator>(); m_pauseState = new State_Pause(m_animator); // Set up the pause functionality AddToGameManagerPauseEvent(); }
protected override void Awake() { m_motor = this.GetComponent <Motor_Stalker>(); if (m_motor == null) { m_motor = this.gameObject.AddComponent <Motor_Stalker>(); } m_animator = this.gameObject.GetComponent <Animator>(); m_overWorldState = new State_Stalker_Wander(this); m_pauseState = new State_Pause(m_animator); m_pursuitState = new State_Stalker_Pursue(this); AddToGameManagerPauseEvent(); }