Esempio n. 1
0
    public void Tick()
    {
        long time = UnityTools.GetLocalMilliseconds();
        int  num  = m_listStoryLogicInfos.Count;

        for (int index = num - 1; index >= 0; index--)
        {
            StoryInstanceInfo info = m_listStoryLogicInfos[index];
            info.m_oInstance.Tick(time);
            if (info.m_oInstance.IsTerminated)
            {
                RecycleStoryInstanceInfo(info);
                m_listStoryLogicInfos.RemoveAt(index);
            }
        }
    }