From 95cc8a700c3c17bd263fbf720b3f7bc30a68fbfe Mon Sep 17 00:00:00 2001 From: ThatZeoMan <67521686+ThatZeoMan@users.noreply.github.com> Date: Wed, 17 Aug 2022 23:17:16 -0500 Subject: [PATCH] ok so it doesnt save but it...might load? once again i have no idea. thanks for the hemp tho, huantian! --- Assets/Scripts/LevelEditor/Editor.cs | 2 +- Assets/Scripts/LevelEditor/Properties/PropController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/LevelEditor/Editor.cs b/Assets/Scripts/LevelEditor/Editor.cs index 75011d6f0..0607a4c0a 100644 --- a/Assets/Scripts/LevelEditor/Editor.cs +++ b/Assets/Scripts/LevelEditor/Editor.cs @@ -512,7 +512,7 @@ namespace HeavenStudio.Editor public string GetPropertiesJson() { string json = string.Empty; - json = JsonConvert.SerializeObject(GameManager.instance.Beatmap); + json = JsonConvert.SerializeObject(PropController.instance.properties); return json; } diff --git a/Assets/Scripts/LevelEditor/Properties/PropController.cs b/Assets/Scripts/LevelEditor/Properties/PropController.cs index 4760663bd..48b2e09aa 100644 --- a/Assets/Scripts/LevelEditor/Properties/PropController.cs +++ b/Assets/Scripts/LevelEditor/Properties/PropController.cs @@ -21,7 +21,7 @@ namespace HeavenStudio.Editor { public static PropController instance { get; private set; } = new PropController(); - public Properties properties; + public Properties properties = new Properties(); public void LoadProperties(string json = "") {