Example #1
0
        //当前任务完成
        private void CompleteCurrentTask()
        {
            _currentContent.OnComplete();

            Main.m_Event.Throw(this, Main.m_ReferencePool.Spawn <EventTaskContentComplete>().Fill(_currentContent));
            _currentContent = null;

            if (AllUncompleteTaskCount > 0)
            {
                if (IsAutoChangeState)
                {
                    if (_currentContentIndex < ContentAsset.Content.Count - 1)
                    {
                        _currentContentIndex += 1;
                    }
                    else
                    {
                        _currentContentIndex = 0;
                    }
                    BeginCurrentTask();
                }
            }
            else
            {
                End();
            }
        }