| | |
| | | |
| | | public Action<float> OnSpeedRatioChange; // 添加战斗速度变化的回调 |
| | | |
| | | public Action<bool> OnFocusChange; |
| | | |
| | | public Action OnBattleRun; // 添加战斗运行时的回调 |
| | | |
| | | public BattleObjMgr battleObjMgr; |
| | |
| | | } |
| | | } |
| | | |
| | | protected bool isFocus = false; |
| | | |
| | | public BattleRootNode battleRootNode; |
| | | private BattleMode battleMode; |
| | | public event Action<BattleMode> ChangeBattleModeEvent; |
| | |
| | | |
| | | // 记录正在处理死亡的角色ID,防止重复处理 |
| | | private HashSet<uint> processingDeathObjIds = new HashSet<uint>(); |
| | | |
| | | public BattleSoundManager soundManager; |
| | | |
| | | #if UNITY_EDITOR |
| | | public static Dictionary<string, string> battleHpRecorder = new Dictionary<string, string>(); |
| | |
| | | battleEffectMgr = new BattleEffectMgr(); |
| | | battleTweenMgr = new BattleTweenMgr(); |
| | | recordPlayer = new RecordPlayer(); |
| | | soundManager = new BattleSoundManager(this); |
| | | |
| | | processingDeathObjIds = new HashSet<uint>(); |
| | | } |
| | |
| | | // adjuster.SetParentCanvas(canvas); |
| | | // } |
| | | // } |
| | | |
| | | BattleManager.Instance.FocusBattleField(this); |
| | | } |
| | | |
| | | public void StartBattle(Action onMoveComplete) |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | public void SetFocus(bool v) |
| | | { |
| | | isFocus = v; |
| | | OnFocusChange?.Invoke(isFocus); |
| | | } |
| | | |
| | | public bool IsFocus() |
| | | { |
| | | return isFocus; |
| | | } |
| | | } |