public void ClearBuff() { Dictionary <int, AiBaseBuff> allBuff = m_BuffMap.GetAll(); foreach (KeyValuePair <int, AiBaseBuff> buffKv in allBuff) { buffKv.Value.Destroy(); } m_BuffMap.Clear(); }
private float GetRencentTime() { Dictionary <int, Timer> allTimer = m_TimerMap.GetAll(); float m_MinTime = 99999999; foreach (KeyValuePair <int, Timer> kv in allTimer) { m_MinTime = Math.Min(kv.Value.GetLeftTime(), m_MinTime); } return(m_MinTime); }