| | |
| | | ParseConfig(); |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerInit; |
| | | BattleManager.Instance.onBattleFieldCreate += OnCreateBattleField; |
| | | |
| | | EventBroadcast.Instance.AddListener<string, SkillConfig, TeamHero>(EventName.BATTLE_CAST_SKILL, OnSkillCast); |
| | | |
| | | } |
| | |
| | | { |
| | | BattleManager.Instance.onBattleFieldCreate -= OnCreateBattleField; |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent -= BeforePlayerInit; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | if (storyBattleField != null && storyBattleField.GetBattleMode() != BattleMode.Stop) |
| | | { |
| | | //战斗中改变模式 |
| | | isAutoAttack = isAutoAttackSet; |
| | | storyBattleField.AutoSetBattleMode(); |
| | | } |
| | | |