diff --git a/Packages/com.chark.game-management/Runtime/Storage/Storage.cs b/Packages/com.chark.game-management/Runtime/Storage/Storage.cs index b7c3627..4af8e1d 100644 --- a/Packages/com.chark.game-management/Runtime/Storage/Storage.cs +++ b/Packages/com.chark.game-management/Runtime/Storage/Storage.cs @@ -53,12 +53,12 @@ public virtual bool TryGetValue(string path, out TValue value) return false; } - if (serializer.TryDeserializeValue(stringValue, out TValue deserializedValue)) + if (serializer.TryDeserializeValue(stringValue, out TValue deserializedValue) == false) { - value = deserializedValue; - return true; + return false; } + value = deserializedValue; return true; }