| | |
| | | // 如果战场类型不在 FieldNameToIndex 中,使用默认配置 |
| | | } |
| | | |
| | | int nowRound = battleField.round; |
| | | int realPassRound = passRound + 1; // 配置是超过x回合可以跳,意味着x+1回合可以跳 |
| | | if (nowRound < realPassRound) |
| | | if (passRound != 0) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound); |
| | | return; |
| | | int nowRound = battleField.round; |
| | | int realPassRound = passRound + 1; // 配置是超过x回合可以跳,意味着x+1回合可以跳 |
| | | if (nowRound < realPassRound) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound); |
| | | return; |
| | | } |
| | | } |
| | | battleField.ForceFinish(); |
| | | } |
| | |
| | | { |
| | | if (null == battleField) |
| | | return; |
| | | |
| | | // 计算下一个速度档位的索引 |
| | | int nextSpeedIndex = (BattleManager.Instance.speedIndex + 1) % BattleManager.Instance.speedGear.Length; |
| | | // 检查下一档倍速功能是否开启 |
| | | int nextSpeedFuncId = BattleManager.Instance.speedIndexfuncIdArr[nextSpeedIndex]; |
| | | bool isOpen = FuncOpen.Instance.IsFuncOpen(nextSpeedFuncId); |
| | | if (!isOpen && FuncOpenLVConfig.HasKey(nextSpeedFuncId)) |
| | | bool isOpen = false; |
| | | if (InvestModel.Instance.IsActiveFightSpeed(3)) |
| | | { |
| | | var config = FuncOpenLVConfig.Get(nextSpeedFuncId); |
| | | SysNotifyMgr.Instance.ShowTip("BattleSpeedTip", TaskManager.Instance.GetNeedFinishTaskCount(config.LimitMissionID), nextSpeedIndex + 1); |
| | | isOpen = true; |
| | | } |
| | | else |
| | | { |
| | | // 检查下一档倍速功能是否开启 |
| | | int nextSpeedFuncId = BattleManager.Instance.speedIndexfuncIdArr[nextSpeedIndex]; |
| | | isOpen = FuncOpen.Instance.IsFuncOpen(nextSpeedFuncId); |
| | | if (!isOpen && FuncOpenLVConfig.HasKey(nextSpeedFuncId)) |
| | | { |
| | | var config = FuncOpenLVConfig.Get(nextSpeedFuncId); |
| | | SysNotifyMgr.Instance.ShowTip("BattleSpeedTip", TaskManager.Instance.GetNeedFinishTaskCount(config.LimitMissionID), nextSpeedIndex + 1); |
| | | } |
| | | } |
| | | BattleManager.Instance.speedIndex = !isOpen ? 0 : nextSpeedIndex; |
| | | battleField.SetSpeedRatio(BattleManager.Instance.speedGear[BattleManager.Instance.speedIndex]); |