コード例 #1
0
        public void AdvanceStory(StoryElement newStoryPoint, bool continueToRun = false)
        {
            if (_handlingSubgraph)
            {
                _subgraphHandler.AdvanceStory(false);
            }
            else if (newStoryPoint != null)
            {
                if (!continueToRun)
                {
                    _currentTask.Stop();
                }

                _currentElement = newStoryPoint;

                _currentTask           = TaskManager.CreateTask(_currentElement.Execute(_manager, _canvas));
                _currentTask.Finished += AdvanceStory;
                _currentTask.Start();
            }
            else
            {
                _afterSubgraphHandler?.Invoke();
            }
        }
コード例 #2
0
 public void Flush()
 {
     task.Stop();
     task.Finished -= TaskFinished;
     ObjPool <Task> .Release(this);
 }
コード例 #3
0
ファイル: Task.cs プロジェクト: TonyDongGuaPi/joework
 public void Stop()
 {
     task.Stop();
 }