//保存当前编辑的歌曲信息 private void SaveCueEditSongInfo() { SceneManager mgr = Singlton.getInstance("SceneManager") as SceneManager; DcGlobalFunc.SaveJson(mgr.cShareData.lstSongData, "Assets/Resources/TXT/Table/Song.txt"); }
IEnumerator ShowScore(float timevalue) { yield return(new WaitForSeconds(timevalue)); SceneManager mgr = Singlton.getInstance("SceneManager") as SceneManager; cBasicNumber.ShowNumber(ref SprBasicNumber, bIsRelease ? mgr.cShareData.nBasicScore : 12345); int nDigit = cComboNumber.ShowNumber(ref SprComboNumber, bIsRelease ? mgr.cShareData.nComboScore : 67890); for (int i = 0; i < SprBasicNumber.Length; i++) { SprBasicNumber[i].animation.Play(); SprComboNumber[i].enabled = false; } StartCoroutine(DelayPlayComboNumberAnim(nDigit, 0.8f)); if (bIsRelease ? mgr.cShareData.bIsWin : true) { SprWin.enabled = true; SprWin.animation.Play(); if (bIsRelease) { if (mgr.cShareData.bIsChallengeOthers) { if (mgr.cShareData.nBasicScore > mgr.cShareData.nHighScores) { LabOwnership.text = cLocalization.GetValue("GetOwnership"); mgr.cShareData.lstBuildingData[mgr.cShareData.nCurSelBuildingIdx].litSongMaster[mgr.cShareData.nCurSelSongIdx4Building] = mgr.cShareData.strUserName; mgr.cShareData.lstBuildingData[mgr.cShareData.nCurSelBuildingIdx].litHighScores[mgr.cShareData.nCurSelSongIdx4Building] = mgr.cShareData.nBasicScore; DcGlobalFunc.SaveJson(mgr.cShareData.lstBuildingData, "Assets/Resources/TXT/Table/Building.txt"); } else { LabOwnership.text = cLocalization.GetValue("ChallengeFail"); } } else { if (mgr.cShareData.nBasicScore > mgr.cShareData.nHighScores) { LabOwnership.text = cLocalization.GetValue("NewHighScores"); mgr.cShareData.lstBuildingData[mgr.cShareData.nCurSelBuildingIdx].litHighScores[mgr.cShareData.nCurSelSongIdx4Building] = mgr.cShareData.nBasicScore; DcGlobalFunc.SaveJson(mgr.cShareData.lstBuildingData, "Assets/Resources/TXT/Table/Building.txt"); } else { LabOwnership.text = cLocalization.GetValue("NoSurpass"); } } } } else { SprLost.enabled = true; SprLost.animation.Play(); PanBgShake.animation.CrossFade("ShopBgColorChange"); if (bIsRelease) { LabOwnership.text = cLocalization.GetValue("IsSubstandard"); } } }