/// <summary> /// 开始下一个回合 /// </summary> public void StartNextRound() { //关闭指令UI uiMiniGameCombat.CloseAll(); //设置当前角色重新开始 uiMiniGameCombat.InitCharacterRound(miniGameData.GetRoundActionCharacter().characterMiniGameData); //结束当前回合 miniGameData.EndRound(); //开始新回合 uiMiniGameCombat.StartRound(); }
/// <summary> /// 开始游戏 /// </summary> public override void StartGame() { base.StartGame(); //打开游戏UI uiMiniGameCombat = UIHandler.Instance.manager.OpenUIAndCloseOther <UIMiniGameCombat>(UIEnum.MiniGameCombat); uiMiniGameCombat.SetCallBack(this); uiMiniGameCombat.SetData(miniGameData); miniGameData.SetCombatStatus(MiniGameCombatStatusEnum.Rounding); uiMiniGameCombat.StartRound(); //战斗速度设置 Time.timeScale = GameDataHandler.Instance.manager.gameData.speedForCombat; }