// Use this for initialization void Start() { RankingManager.SetRankData(1001); RankingManager.SetRankData(10); RankingManager.SetRankData(100); RankingManager.SetRankData(5000); Debug.Log(RankingManager.GetScore(0)); Debug.Log(RankingManager.GetScore(1)); Debug.Log(RankingManager.GetScore(2)); }
// Use this for initialization void Start() { RankingManager.LoadRanking(); for (int i = 0; i < 3; i++) { rankText[i].text = RankingManager.GetScore(i).ToString(); } AudioManager.Play(BGMType.Menu); }