private void BtnInteract(PointerEventData data) { if (mSequence.IsPlaying()) { return; } TagData tagData = CConvert.StringToTag(data.pointerPress.name); switch (tagData.mIndexList[0]) { case "资料介绍": SwitchPanel(SwitchPanelType.Right, SwitchPanelType.Both); mSequence.InsertCallback(1f, () => { SetGoActive(mSUIGoDict["RightPage-0"], false); SetGoActive(mSUIGoDict["RightPage-1"], true); SetLeftPanel(InfoDataCenter.InfoData.InfoList[0].Title, InfoDataCenter.InfoData.InfoList[0].Content); }); break; case "训练教程": SwitchPanel(SwitchPanelType.Right, SwitchPanelType.Both); mSequence.InsertCallback(1f, () => { SetGoActive(mSUIGoDict["RightPage-0"], false); SetGoActive(mSUIGoDict["RightPage-2"], true); SetLeftPanel("操作方式说明", "W:前进\nS:后退\nA:左平移\nD:右平移\nQ:左旋转\nE:右旋转\n空格:上升\nCtrl:下降\nC:锁定目标\nTab:切换目标\n\n鼠标左键:机炮射击\n鼠标右键:火箭射击\n鼠标中键:导弹射击"); }); GameSetting.Self.mMode = Mode.Training; break; case "仿真实战": SwitchPanel(SwitchPanelType.Right, SwitchPanelType.Both); mSequence.InsertCallback(1f, () => { SetGoActive(mSUIGoDict["RightPage-0"], false); SetGoActive(mSUIGoDict["RightPage-2"], true); SetLeftPanel("任务简报", "任务性质:歼灭战\n任务地点:敌军小型补给点\n目标构成:装甲车辆\n任务目标:歼灭所有敌人"); }); GameSetting.Self.mMode = Mode.ActualCombat; break; case "背景资料": SwitchPanel(SwitchPanelType.Left, SwitchPanelType.Left); mSequence.InsertCallback(1f, () => { SetLeftPanel(InfoDataCenter.InfoData.InfoList[0].Title, InfoDataCenter.InfoData.InfoList[0].Content); }); break; case "机体参数": SwitchPanel(SwitchPanelType.Left, SwitchPanelType.Left); mSequence.InsertCallback(1f, () => { SetLeftPanel(InfoDataCenter.InfoData.InfoList[1].Title, InfoDataCenter.InfoData.InfoList[1].Content); }); break; case "武器资料": SwitchPanel(SwitchPanelType.Left, SwitchPanelType.Left); mSequence.InsertCallback(1f, () => { SetLeftPanel(InfoDataCenter.InfoData.InfoList[2].Title, InfoDataCenter.InfoData.InfoList[2].Content); }); break; case "开始任务": SetSUIActive("LoadingPicture-Image", true); SceneManager.LoadSceneAsync("BattleField"); break; case "难度": ChangeDifficulty(); break; case "更换涂装": ChangeMaterial(); break; case "返回": SwitchPanel(SwitchPanelType.Both, SwitchPanelType.Right); mSequence.InsertCallback(1f, () => { SetGoActive(mSUIGoDict["RightPage-0"], true); SetGoActive(mSUIGoDict["RightPage-1"], false); SetGoActive(mSUIGoDict["RightPage-2"], false); }); break; case "退出": Application.Quit(); break; } }