public void OnUpdate(float dt) { for (int i = m_delayMsgList.Count - 1; i >= 0; i--) { DelayMessage delayMessage = m_delayMsgList[i]; if (delayMessage.DelayTimeCheck(dt)) { m_delayMsgList.Remove(delayMessage); PostMessage(delayMessage); } } }
public void DelayPostMessage(DelayMessage i_pMessage) { m_delayMsgList.Add(i_pMessage); }