Skip to content

Commit

Permalink
useful log and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddio0141 committed Nov 10, 2024
1 parent 69ea2a4 commit 2b63a4b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void Save(ScriptableObject obj)
if (StoredStates.ContainsKey(obj)) return;

StaticLogger.LogDebug($"Saving ScriptableObject {obj.name}");
StoredStates.Add(obj, new(obj));
StoredStates.Add(obj, new StoredState(obj));
}

private readonly struct StoredState
Expand All @@ -55,6 +55,8 @@ public void Load()
return;
}

StaticLogger.LogDebug($"Loading ScriptableObject {_scriptableObject.name}");

foreach (var savedField in _savedFields)
{
savedField.Load();
Expand Down

0 comments on commit 2b63a4b

Please sign in to comment.