Refactorisation
This commit is contained in:
1 parent
18237e3a0b
commit
600545e0f1
31 files changed
+102
-102
No files matched your search
@@ -2,13 +2,13 @@ using UnityEngine;
|
||||
|
||||
public class UpgradesData : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TextAsset upgradesJSON;
|
||||
[SerializeField] private TextAsset _upgradesJSON;
|
||||
|
||||
public Upgrades upgrades;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
upgrades = JsonUtility.FromJson<Upgrades>(upgradesJSON.text);
|
||||
upgrades = JsonUtility.FromJson<Upgrades>(_upgradesJSON.text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user