public void PauseMessageHandler(string msgId, bool pause)
{
int ct = m_StoryLogicInfos.Count;
for (int ix = ct - 1; ix >= 0; --ix) {
StoryInstance info = m_StoryLogicInfos[ix];
info.PauseMessageHandler(msgId, pause);
}
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.PauseMessageHandler(msgId, pause);
}
}
}
}