//call this to update the FSM public void Update(float deltaTime) { //same for the current state if (null != m_pCurrentState) { m_pCurrentState.Execute(m_pOwner); m_pCurrentState.Update(m_pOwner, deltaTime); } }