public void OnUpdate() { if (objDic == null || objDic.Count == 0) { return; } for (int i = objDic.Count - 1; i >= 0; i--) { BuildingAtkWarning warning = objDic.ElementAt(i).Key; warning.OnUpdate(); } }