public static void LoadOrInitializeInventory() { // Saving and loading. if (File.Exists(Path.Combine(Application.persistentDataPath, "inventory.json"))) { Debug.Log("Found file inventory.json, loading inventory."); StoreInventory.LoadFromJSON(Path.Combine( Application.persistentDataPath, "inventory.json")); } else { Debug.Log("Couldn't find inventory.json, loading from template."); StoreInventory.InitializeFromDefault(); } }