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