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"); } }
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"); } }
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"); } }
/// <summary> /// Raises a set custom data event /// </summary> /// <param name="_callbak">Callback response object</param> public void RaiseOnSetCustomDataActions(CallbackSetUserCustomValue _callbak) { OnSetCustomDataActions?.Invoke(_callbak); }