void Start() { GamedoniaUsers.Authenticate(OnLogin); printToConsole("Starting session with Gamedonia..."); //Handle push GDPushService pushService = new GDPushService(); pushService.RegisterEvent += new RegisterEventHandler(OnNotification); GamedoniaPushNotifications.AddService(pushService); }
private void OnFacebookMe(IDictionary data) { statusMsg = "Initiating Gamedonia session..."; fbUserId = data ["id"] as string; fbUserName = data ["name"] as string; Debug.Log("AccessToken: " + FacebookBinding.GetAccessToken() + " fbuid: " + fbUserId); Dictionary <string, object> facebookCredentials = new Dictionary <string, object> (); facebookCredentials.Add("fb_uid", fbUserId); facebookCredentials.Add("fb_access_token", FacebookBinding.GetAccessToken()); GamedoniaUsers.Authenticate(GamedoniaBackend.CredentialsType.FACEBOOK, facebookCredentials, OnFacebookLogin); }
void Start() { GamedoniaUsers.Authenticate(OnLogin); printToConsole("Starting session with Gamedonia..."); //Register the callback GDInAppService reqService = new GDInAppService(); reqService.RegisterEvent += new InAppEventHandler(OnProductsRequested); GamedoniaStoreInAppPurchases.AddRequestService(reqService); GDInAppService buyService = new GDInAppService(); buyService.RegisterEvent += new InAppEventHandler(OnProductPurchased); GamedoniaStoreInAppPurchases.AddPurchaseService(buyService); }
void Start() { GamedoniaUsers.Authenticate(OnLogin); printToConsole("Starting session with Gamedonia..."); }