Example #1
0
        private void PlayHeavyDamage(DamagedStates status)
        {
            List <ShipModel_Defender> list = new List <ShipModel_Defender>();

            list.AddRange(_queFriedShipModel.ToArray());
            _queFriedShipModel.Clear();
            ProdDamageCutIn.DamageCutInType damageCutInType = (status == DamagedStates.Taiha) ? ProdDamageCutIn.DamageCutInType.Heavy : ProdDamageCutIn.DamageCutInType.Moderate;
            ProdDamageCutIn prodDamageCutIn = BattleTaskManager.GetPrefabFile().prodDamageCutIn;

            prodDamageCutIn.SetShipData(list, damageCutInType);
            prodDamageCutIn.Play(damageCutInType, delegate
            {
                BattleShips battleShips = BattleTaskManager.GetBattleShips();
                battleShips.UpdateDamageAll(_iBattlePhase);
                ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction();
                observerAction.Executions();
                OnFinished();
            });
        }