private void OnGoogleButtonClicked(UXButton button) { if (GameServicesManager.IsUserAuthenticated()) { GameServicesManager.SignOut(); Service.Get <IAccountSyncController>().UnregisterGameServicesAccount(); return; } GameServicesManager.SignIn(); }
private void OnAchievementButtonClicked(UXButton button) { if (GameServicesManager.IsUserAuthenticated()) { GameServicesManager.ShowAchievements(); return; } this.achievementsClicked = true; GameServicesManager.SignIn(); }
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(); }