//检索歌曲表ID private void RetrievalSongListID() { SceneManager mgr = Singlton.getInstance("SceneManager") as SceneManager; for (int i = 0; i < mgr.cShareData.lstSongData.Count; i++) { if (mgr.cShareData.lstSongData[i].nSongID != i) { } } mCommonUIManager.showMessageBox("歌曲表ID异常,工具默认以序号0开始递增1的标号规则修复歌曲ID", "", NvMessageBox.EMessageBoxStyle.eStyle_OkayOnly, OnEndModal, true); }
// Update is called once per frame void Update() { if (DcGame.gEnableKeyChecker == false) { return; } if (Application.platform != RuntimePlatform.IPhonePlayer) { if (Input.GetKey(KeyCode.Escape) /* && !mMessageboxDisplayed*/) { Debug.Log("KeyChecker : " + Input.GetKey(KeyCode.Escape)); string desc = (Singlton.getInstance("NvLocalizationManager") as NvLocalizationManager).GetValue("ExitHintContext"); mCommonUIManager.showMessageBox(desc, "", NvMessageBox.EMessageBoxStyle.eStyle_YesNo, OnEndModal, true); mMessageboxDisplayed = true; } } if (Application.isEditor) { if (Input.GetKeyUp(KeyCode.F11)) { string strScreenshotPath = "Screenshot/" + System.DateTime.Now.ToString("yyyy_MM_dd HH_mm_ss") + ".png"; Debug.LogWarning("CaptureScreenshot: " + strScreenshotPath); Application.CaptureScreenshot(strScreenshotPath); NvSoundController soundctr = Singlton.getInstance("NvSoundController") as NvSoundController; soundctr.PlaySe("shutter"); } } if (Application.isEditor || Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsWebPlayer) { if (Input.GetKeyUp(KeyCode.F9)) { SceneManager mgr = Singlton.getInstance("SceneManager") as SceneManager; if (Application.loadedLevelName == "UI_Map") { mgr.ChangeScene("UI_ProductionTeam"); } else if (Application.loadedLevelName == "UI_ProductionTeam") { mgr.ChangeScene("UI_Map"); } NvSoundController soundctr = Singlton.getInstance("NvSoundController") as NvSoundController; soundctr.PlaySe("ui_touch"); } } }