Beispiel #1
0
    void Start()
    {
#if UNITY_ANDROID
        Social.Active = new UnityEngine.SocialPlatforms.GPGSocial();
#elif UNITY_IPHONE
        GameCenterPlatform.ShowDefaultAchievementCompletionBanner(true);
        StartCoroutine(GPGController.checkConnection());
#endif

        StartCoroutine(GPGController.signIn());
    }
Beispiel #2
0
    public static void showLeaderBoards()
    {
        if (Social.localUser.authenticated)
        {
            Social.ShowLeaderboardUI();
        }

        else
        {
            instance.StartCoroutine(GPGController.signIn());
        }
    }