| | |
| | | |
| | | public BattleSoundManager soundManager; |
| | | |
| | | public BattlePerformSwitch battleSwitch; |
| | | |
| | | #if UNITY_EDITOR |
| | | public static Dictionary<string, string> battleHpRecorder = new Dictionary<string, string>(); |
| | | #endif |
| | |
| | | { |
| | | BattleHeroInfoBar.largestPackUIDAllObjectsMaxHp.Remove(guid); |
| | | } |
| | | |
| | | BattleMapConfig battleMapConfig = BattleMapConfig.Get(MapID); |
| | | |
| | | // 主线MapID == 1 |
| | | battleSwitch = MapID == 1 ? BattleSwitch.storySwitch : BattleSwitch.nonStorySwitch; |
| | | } |
| | | |
| | | protected void PreloadResources(List<TeamBase> redTeamList, List<TeamBase> blueTeamLis) |
| | |
| | | return isFocus; |
| | | } |
| | | |
| | | public virtual void PlayBuffAction(RecordAction buffAction, bool insert) |
| | | public void PlayBuffAction(RecordAction buffAction, bool insert) |
| | | { |
| | | var targetPlayer = PackageRegeditEx.GetTargetRecordPlayer(this); |
| | | if (insert) |
| | | targetPlayer.ImmediatelyPlay(buffAction); |
| | | if (battleSwitch.BuffAction) |
| | | { |
| | | var targetPlayer = PackageRegeditEx.GetTargetRecordPlayer(this); |
| | | if (insert) |
| | | targetPlayer.ImmediatelyPlay(buffAction); |
| | | else |
| | | targetPlayer.PlayRecord(buffAction); |
| | | } |
| | | else |
| | | targetPlayer.PlayRecord(buffAction); |
| | | { |
| | | buffAction.ForceFinish(); |
| | | } |
| | | } |
| | | |
| | | |