private void CheckRankInfo() { RankInfo.LoadRank(); if (RankInfo.CheckIfRankIn()) { inputer.gameObject.SetActive(true); RankInfo.SortRank(); } }
public void DisplayBestScore() { RankInfo.LoadRank(); if (RankInfo.LoadChampionInfo().rank != 0) { bestMark.SetActive(true); scoreBest.gameObject.SetActive(true); scoreBest.text = "Best Score : " + RankInfo.LoadChampionInfo().score.ToString() + " m"; } else { bestMark.SetActive(false); scoreBest.gameObject.SetActive(false); } }
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(); }