| | |
| | | : base(RecordActionType.Death, _battleField, _battleObj) |
| | | { |
| | | isFinish = false; |
| | | isRunOnce = false; |
| | | } |
| | | |
| | | public override bool IsFinished() |
| | |
| | | |
| | | public override void Run() |
| | | { |
| | | if (isRunOnce) |
| | | { |
| | | return; |
| | | } |
| | | base.Run(); |
| | | isRunOnce = true; |
| | | isFinish = true; |
| | | battleObject.OnDeath(OnDeathAnimationEnd); |
| | | } |
| | | |
| | |
| | | // 只有主线掉落物品 |
| | | if (battleField.MapID == 1 || battleField.MapID == 2) |
| | | { |
| | | var dropItemPack = PackManager.Instance.GetSinglePack(PackType.DropItem); |
| | | if (dropItemPack != null) |
| | | { |
| | | var items = dropItemPack.GetAllItems(); |
| | | foreach (ItemModel item in items.Values) |
| | | { |
| | | // 掉落物品 |
| | | battleField.OnObjDropItem(battleObject.teamHero.positionNum, item); |
| | | battleField.OnObjDropExp(battleObject); |
| | | |
| | | } |
| | | } |
| | | battleObject.PerformDrop(); |
| | | } |
| | | // 掉落物品 增加经验 |
| | | |