Moved player frame JSON to script
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9fdaf51f33b85cc4eb9e54f6b3c12f6c
|
|
||||||
TextScriptImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -27,9 +27,8 @@ namespace InterfaceOff.WorldScene
|
|||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
/* Loads the JSON, temporary. TODO: Insert the JSON into this .cs file */
|
/* Loads the JSON */
|
||||||
string json = File.ReadAllText(Application.dataPath + "/Resources/playerframe.json");
|
Frames = JsonUtility.FromJson<PlayerFrameInfoArray>(PlayerFrameDump.DUMPED_STRING).FrameInfo;
|
||||||
Frames = JsonUtility.FromJson<PlayerFrameInfoArray>(json).FrameInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
|
|||||||
9722
Assets/Scripts/PlayerFrameDump.cs
Normal file
9722
Assets/Scripts/PlayerFrameDump.cs
Normal file
File diff suppressed because it is too large
Load Diff
3
Assets/Scripts/PlayerFrameDump.cs.meta
Normal file
3
Assets/Scripts/PlayerFrameDump.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2cafaee111f14aef857e142b9511935d
|
||||||
|
timeCreated: 1769094210
|
||||||
Reference in New Issue
Block a user