Ejemplo n.º 1
0
        private void InitializeStates()
        {
            //Create all the states
            m_CharacterStates[0] = new WalkState(this);
            m_CharacterStates[1] = new JumpState(this);
            m_CharacterStates[2] = new FallState(this);

            SetState(PlayerState.Fall);
        }
Ejemplo n.º 2
0
        private void InitializeStates()
        {
            //Create all the states
            m_CharacterStates[0] = new WalkState(this);
            m_CharacterStates[1] = new JumpState(this);
            m_CharacterStates[2] = new FallState(this);

            SetState(PlayerState.Fall);
        }