예제 #1
0
 private void OnGoogleButtonClicked(UXButton button)
 {
     if (GameServicesManager.IsUserAuthenticated())
     {
         GameServicesManager.SignOut();
         Service.Get <IAccountSyncController>().UnregisterGameServicesAccount();
         return;
     }
     GameServicesManager.SignIn();
 }
예제 #2
0
 private void OnAchievementButtonClicked(UXButton button)
 {
     if (GameServicesManager.IsUserAuthenticated())
     {
         GameServicesManager.ShowAchievements();
         return;
     }
     this.achievementsClicked = true;
     GameServicesManager.SignIn();
 }
예제 #3
0
        private void OnVideoDetailsGP(string guid)
        {
            this.videoGuid = guid;
            if (GameServicesManager.IsUserAuthenticated())
            {
                this.OnGPLoggedIn();
                return;
            }
            EventManager eventManager = Service.Get <EventManager>();

            eventManager.RegisterObserver(this, EventId.GameServicesSignedIn);
            eventManager.RegisterObserver(this, EventId.GameServicesSignedOut);
            GameServicesManager.SignIn();
        }