Esempio n. 1
0
        public void SetState(State state, VertState vertState)
        {
            State     = state;
            VertState = vertState;

            switch (VertState)
            {
            case VertState.Ground:

                switch (state)
                {
                case State.Idle:

                    SetAnimation(Assets.Animations["eugene-idle"]);

                    break;

                case State.Walk:

                    SetAnimation(Assets.Animations["eugene-walking"]);

                    break;
                }

                break;

            case VertState.Air:

                switch (state)
                {
                case State.Jump:

                    SetAnimation(Assets.Animations["eugene-ascending"]);

                    break;
                }

                break;
            }
        }
Esempio n. 2
0
        public void SetState(State state, VertState vertState)
        {
            State = state;
            VertState = vertState;

            switch (VertState)
            {
                case VertState.Ground:

                    switch (state)
                    {
                        case State.Idle:

                            SetAnimation(Assets.Animations["eugene-idle"]);

                            break;
                        case State.Walk:

                            SetAnimation(Assets.Animations["eugene-walking"]);

                            break;
                    }

                    break;
                case VertState.Air:

                    switch (state)
                    {
                        case State.Jump:

                            SetAnimation(Assets.Animations["eugene-ascending"]);

                            break;
                    }

                    break;
            }
        }