Exemplo n.º 1
0
        //被打服了
        private IEnumerator PlayDefeatedAction(BattleHerodDefeatedAction action)
        {
            if (action == null)
            {
                UtilityHelper.LogError("Error BattleHerodDefeatedAction");
                yield break;
            }

            transform.ShiftOut();
        }
Exemplo n.º 2
0
 //被使用技能
 private void AcceptSkillResult(BattleHeroSyncAttribute sync, List <BattleAction> actions)
 {
     if (sync != null)
     {
         hp = sync.currentHP;
         if (hp <= 0)
         {
             //被击败了
             //从格子中移除
             LeaveGrid();
             if (actions != null)
             {
                 BattleHerodDefeatedAction action = new BattleHerodDefeatedAction(this);
                 actions.Add(action);
             }
         }
     }
 }