public override EatResponse OnEvent(EventId id, object cookie)
 {
     if (id != EventId.GameServicesSignedIn)
     {
         if (id != EventId.GameServicesSignedOut)
         {
             if (id == EventId.FacebookLoggedOut)
             {
                 this.SetFacebookButtonLabel(false);
             }
         }
         else if ((AccountProvider)cookie == AccountProvider.GOOGLEPLAY)
         {
             this.SetGoogleButtonLabel(false);
         }
     }
     else if ((AccountProvider)cookie == AccountProvider.GOOGLEPLAY)
     {
         this.SetGoogleButtonLabel(true);
         if (this.achievementsClicked)
         {
             this.achievementsClicked = false;
             GameServicesManager.ShowAchievements();
         }
     }
     return(base.OnEvent(id, cookie));
 }
 private void OnAchievementButtonClicked(UXButton button)
 {
     if (GameServicesManager.IsUserAuthenticated())
     {
         GameServicesManager.ShowAchievements();
         return;
     }
     this.achievementsClicked = true;
     GameServicesManager.SignIn();
 }