public void EndProc(GameProc eproc, Executable[] next) { Destroy(eproc); execQueue.AddRange(next); GameState.camCtrl.Focus(transform.parent.Find("cursor")); op = OP.neutral; }
public void StartProc(Executable exe) { proc = gameObject.AddComponent("GameProc") as GameProc; DungeonCharacter[] dchars = charsInPlay.ToArray(); proc.Initialize(exe, EndProc); op = OP.execute; proc.BeginProc(); }