예제 #1
0
 public static void UpdateOrCreateKeyValue(LootLockerGetPersistentStoragRequest data, Action <LootLockerGetPersistentStoragResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete);
 }
예제 #2
0
        public static void UpdateOrCreateKeyValue(string key, string value, Action <LootLockerGetPersistentStoragResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetPersistentStoragRequest data = new LootLockerGetPersistentStoragRequest();

            data.AddToPayload(new LootLockerPayload {
                key = key, value = value
            });
            LootLockerAPIManager.UpdateOrCreateKeyValue(data, onComplete);
        }