void _change() { currentAction.last(); currentAction = nextAction; nextAction.shiftToIdle(); actionProc = _idle; physicsProc = _idle; currentAction.first(); actionProc(); }
public void init(ActionInitProc currentInit) { currentAction = new ActionHolder(); nextAction = new ActionHolder(); currentAction.shiftToIdle(); nextAction.shiftToIdle(); actionProc = _idle; physicsProc = _idle; currentInit(ref currentAction); currentAction.first(); }