public void SuspendMessageHandler(string msgId, bool suspend) { int ct = m_StoryLogicInfos.Count; for (int ix = ct - 1; ix >= 0; --ix) { StoryInstance info = m_StoryLogicInfos[ix]; info.SuspendMessageHandler(msgId, suspend); } }
public void SuspendMessageHandler(string msgId, bool suspend) { int ct = m_StoryLogicInfos.Count; for (int ix = ct - 1; ix >= 0; --ix) { StoryInstance info = m_StoryLogicInfos[ix]; info.SuspendMessageHandler(msgId, suspend); } foreach (var pair in m_AiStoryInstancePool) { var infos = pair.Value; int aiCt = infos.Count; for (int ix = aiCt - 1; ix >= 0; --ix) { if (infos[ix].m_IsUsed && null != infos[ix].m_StoryInstance) { infos[ix].m_StoryInstance.SuspendMessageHandler(msgId, suspend); } } } }