Moved player frame JSON to script

This commit is contained in:
Pasha Bibko
2026-01-22 15:23:33 +00:00
parent 0f9c714828
commit 9781bd6190
5 changed files with 9727 additions and 9725 deletions

View File

@@ -27,9 +27,8 @@ namespace InterfaceOff.WorldScene
private void Awake()
{
/* Loads the JSON, temporary. TODO: Insert the JSON into this .cs file */
string json = File.ReadAllText(Application.dataPath + "/Resources/playerframe.json");
Frames = JsonUtility.FromJson<PlayerFrameInfoArray>(json).FrameInfo;
/* Loads the JSON */
Frames = JsonUtility.FromJson<PlayerFrameInfoArray>(PlayerFrameDump.DUMPED_STRING).FrameInfo;
}
private void FixedUpdate()