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

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 9fdaf51f33b85cc4eb9e54f6b3c12f6c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

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()

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2cafaee111f14aef857e142b9511935d
timeCreated: 1769094210