Ejemplo n.º 1
0
 private void OnSetCustomValueComplete(CallbackSetUserCustomValue _msg)
 {
     if (_msg.IsSuccess)
     {
         Debug.Log("Set user custom value success.Value ID = " + _msg.ValueID);
     }
     else
     {
         Debug.Log("Failed to set user custom value");
     }
 }
Ejemplo n.º 2
0
 private void OnSetGoldComplete(CallbackSetUserCustomValue msg)
 {
     if (msg.IsSuccess)
     {
         if (msg.ValueID == passionKey)
         {
             Debug.Log("Successfully saved gold");
             EasyProfileManager.Instance.GetCustomValue(goldKey, OnGetGoldComplete);
         }
     }
     else
     {
         Debug.Log("Failed to Set gold");
     }
 }
Ejemplo n.º 3
0
 private void OnSetShopItemComplete(CallbackSetUserCustomValue msg)
 {
     if (msg.IsSuccess)
     {
         foreach (var item in shopItems)
         {
             if (msg.ValueID == item.itemKey)
             {
                 EasyProfileManager.Instance.GetCustomValue(item.itemKey, OnGetShopItemComplete);
             }
         }
     }
     else
     {
         Debug.Log("Failed to Set Shop Item");
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Raises a set custom data event
 /// </summary>
 /// <param name="_callbak">Callback response object</param>
 public void RaiseOnSetCustomDataActions(CallbackSetUserCustomValue _callbak)
 {
     OnSetCustomDataActions?.Invoke(_callbak);
 }