// 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); }
void DisplayLeaderBoard(int maxToDisplay) { LeaderBoard.LoadScores(); StartCoroutine(DisplayScores(maxToDisplay)); }