Exemple #1
0
    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");
                }
            });
        }
    }
Exemple #2
0
    IEnumerator setScrollbarValue()
    {
        yield return(new WaitForSeconds(0.1f));

        scrollbar.value = 1 - (PlayerPrefsControll.GetBest()) / 50f;
        //print(scrollbar.value);
        Canvas.ForceUpdateCanvases();
    }