示例#1
0
        void AddWarning(UInt64 owner)
        {
            Ientity            ownerEntity = EntityManager.AllEntitys[owner];
            BuildingAtkWarning warning     = new BuildingAtkWarning();

            warning.CreateCircleRes(ownerEntity);
            objDic.Add(warning, ownerEntity);
        }
示例#2
0
 bool ContainWarning(Ientity entity)
 {
     for (int i = objDic.Count - 1; i >= 0; i--)
     {
         BuildingAtkWarning warning = objDic.ElementAt(i).Key;
         if (warning.GetTarget() == entity)
         {
             return(true);
         }
     }
     return(false);
 }
示例#3
0
 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();
     }
 }
示例#4
0
 public void RemoveWarning(BuildingAtkWarning warning)
 {
     warning.Clean();
     objDic.Remove(warning);
     warning = null;
 }