public void Update() { if (m_globalState != null) { m_globalState.Execute(this); } if (m_currState != null) { m_currState.Execute(this); } }