Skip to content

Commit

Permalink
feat: adding a load function directly from a string (for internal cal…
Browse files Browse the repository at this point in the history
…ls, e.g. PlayerPrefs)
  • Loading branch information
dbirman committed Aug 23, 2024
1 parent 156d0c6 commit d952a79
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ public void Load(LoadModel allData)
ParseLoadData(allData);
}

/// <summary>
/// Load data from an internal serialized string
/// </summary>
/// <param name="serializedData"></param>
public void Load(string serializedData)
{
ParseLoadData(JsonUtility.FromJson<LoadModel>(serializedData));
}

/// <summary>
/// Load all of the managers in priority order
/// </summary>
Expand Down

0 comments on commit d952a79

Please sign in to comment.