예제 #1
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();
        }
예제 #2
0
        public void changeTo(ActionInitProc nextInit)
        {
            nextInit(ref nextAction);

            shiftTo(_change);
        }