コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
     _dreamLoLB = GetComponent <DreamloLeaderBoard>();
     _dreamLoLB.LoadScores();
     _dreamLoLB.HighScoresLoadedHandler += OnHighScoresLoaded;
     //LoadScores();
     DontDestroyOnLoad(gameObject);
 }
コード例 #2
0
 void DisplayLeaderBoard(int maxToDisplay)
 {
     LeaderBoard.LoadScores();
     StartCoroutine(DisplayScores(maxToDisplay));
 }