Esempio n. 1
0
 void UnityUICloudGoodsLogin_UserLoggedIn(CloudGoods.SDK.Models.CloudGoodsUser obj)
 {
     SwitchToUserInfo();
     UserName.text       = obj.UserName;
     UserEmail.text      = obj.UserEmail;
     UserGuid.text       = obj.UserID;
     SessionID.text      = obj.SessionId;
     FirstTimeLogin.text = obj.IsNewUserToWorld.ToString();
 }
    void OnUserLoggedIn(CloudGoodsUser user)
    {
        UserName.text = user.UserName;
        UserEmail.text = "N/A";
        UserId.text = user.UserID;
        SessionId.text = user.SessionId.ToString();
        isNewPlayer.text = user.IsNewUserToWorld.ToString();

        UserInfoDisplayWindow.SetActive(true);
    }
        public static void LoginByPlatform(LoginByPlatformRequest request, Action<CloudGoodsUser> callback)
        {
            request.DeviceType = GetDeviceType();

            CallHandler.Instance.LoginByPlatform(request, user =>
            {
                _ActiveUser = user;
                callback(user);
            });
        }
 void OnUserLoggedIn(CloudGoodsUser user)
 {
     premiumCurrencyWindow.SetActive(true);
 }
 void OnRegisteredtoSession(CloudGoodsUser user)
 {
     StoreDisplay.SetActive(true);
     itemBundlesLoader.GetItemBundles();
 }
 void OnRegisteredtoSession(CloudGoodsUser user)
 {
     PremiumCurrencyStore.SetActive(true);
 }
 void OnRegisteredtoSession(CloudGoodsUser user)
 {
     ItemContainerManager.RefreshAllPersistentItemContainers();
 }
 void OnReceivedCloudGoodsUser(CloudGoodsUser userLoginResponse)
 {
     if(UserLoggedIn != null)
         UserLoggedIn(userLoginResponse);
 }
Esempio n. 9
0
 void OnRegisteredtoSession(CloudGoodsUser user)
 {
     storeLoader.SetActive(true);
     StoreInitializer initializer = storeLoader.GetComponent<StoreInitializer>();
     initializer.InitializeStore();
 }
 public static void Logout()
 {
     _ActiveUser = null;
 }
Esempio n. 11
0
 void OnUserLogin(CloudGoodsUser userResponse)
 {
     Debug.Log("User logged in: " + userResponse.UserName + " with Session ID: " + userResponse.SessionId + "   with UserID: " + userResponse.UserID +  " first login: " + userResponse.IsNewUserToWorld);
     OnUserLoggedIn(userResponse);
 }