public void UpLeaderBoad() { Social.localUser.Authenticate((bool success) => { if (success) { Debug.Log("You've successfully logged in"); } else { Debug.Log("Login failed for some reason"); } }); if (Social.localUser.authenticated) { Social.ReportScore(PlayerPrefsControll.GetBest(), leaderboard, (bool success) => { if (success) { } else { //Debug.Log("Login failed for some reason"); } }); } }
IEnumerator setScrollbarValue() { yield return(new WaitForSeconds(0.1f)); scrollbar.value = 1 - (PlayerPrefsControll.GetBest()) / 50f; //print(scrollbar.value); Canvas.ForceUpdateCanvases(); }