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


            currentAction = nextAction;

            nextAction.shiftToIdle();

            actionProc = _idle;

            physicsProc = _idle;


            currentAction.first();


            actionProc();
        }
Ejemplo 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();
        }
Ejemplo n.º 3
0
 public void setPhysics(PhysicsProc phys)
 {
     physicsProc = phys;
 }