Ejemplo n.º 1
0
        public override void CleanWhenGameOver()
        {
            UserGameItems.Clear();
            UserGameItemsCount.Clear();
            UserGameItemsCoolDown.Clear();
            CleanSkillDic(SkillIdDic);
            CleanSkillDic(BaseSkillIdDic);
            SetFuryValue(0);
            SetFuryState(EFuryState.eFuryNullState);
            if (AbsorbMonsterType != null)
            {
                AbsorbMonsterType[0] = 0;
                AbsorbMonsterType[1] = 0;
            }

            BattleingData.AllBlueHeroBattle.Clear();
            BattleingData.AllRedHeroBattle.Clear();
        }
Ejemplo n.º 2
0
 void UpdateCoolDownGameItems()
 {
     if (UserGameItemsCoolDown == null || UserGameItemsCoolDown.Count == 0)
     {
         return;
     }
     for (int i = 0; i < UserGameItemsCoolDown.Count; i++)
     {
         if (UserGameItemsCoolDown.ElementAt(i).Value > Time.deltaTime)
         {
             float time = (float)UserGameItemsCoolDown.ElementAt(i).Value;
             time -= Time.deltaTime;
             UserGameItemsCoolDown[UserGameItemsCoolDown.ElementAt(i).Key] = time;
         }
         else
         {
             UserGameItemsCoolDown[UserGameItemsCoolDown.ElementAt(i).Key] = 0f;
         }
     }
 }