public void InputNameOK() { int idx = RankInfo.GetNewRankInfo().rank - 1; bool all_blank = true; for (int i = 0; i < inputer.textComponent.text.Length; i++) { if (inputer.textComponent.text[i] != 0x20) { all_blank = false; break; } } if (!all_blank) { RankInfo.InputRankName(inputer.textComponent.text, idx); } checkStringByte.MakeCharacterToLimit(RankInfo.GetRankInfo(idx).name); RankInfo.SaveRank(idx); AudioManager.PlaySE(AudioManager.AudioSourceIndex.AUDIO_SOURCE_SE_TYPE_A, AudioManager.SE.SE_TITLE, 0.5f); inputer.gameObject.SetActive(false); }
private void LoadScoreInfo() { //score.SetScore(0); //scoreBest.SetScore(0); score.SetScore(RankInfo.GetNewRankInfo().score); scoreBest.SetScore(RankInfo.GetRankInfo(0).score); }
protected override void Start() { SetBgSize(); RankInfo.LoadRank(); for (int i = 0; i < 5; i++) { rankText[i].text = (i + 1).ToString(); if (RankInfo.GetRankInfo(i).rank != 0) { nameText[i].text = RankInfo.GetRankInfo(i).name; scoreText[i].text = RankInfo.GetRankInfo(i).score.ToString(); } else { nameText[i].text = "---------"; scoreText[i].text = "-----"; } } AudioManager.StopBGM(); AudioManager.PlayBGM(AudioManager.BGM.BGM_TITLE); base.Start(); }
static public int GetBestScore() { return(RankInfo.GetRankInfo(0).score); }