Esempio n. 1
0
        void _change()
        {
            currentAction.last();


            currentAction = nextAction;

            nextAction.shiftToIdle();

            actionProc = _idle;

            physicsProc = _idle;


            currentAction.first();


            actionProc();
        }
Esempio n. 2
0
        public void init(ActionInitProc currentInit)
        {
            currentAction = new ActionHolder();

            nextAction = new ActionHolder();


            currentAction.shiftToIdle();

            nextAction.shiftToIdle();

            actionProc = _idle;

            physicsProc = _idle;


            currentInit(ref currentAction);


            currentAction.first();
        }