Improvements to editor objects

This commit is contained in:
Braedon
2022-01-21 16:09:14 -05:00
parent ed8b3a6db8
commit dea5860e95
5 changed files with 127 additions and 92 deletions

View File

@ -92,6 +92,15 @@ namespace RhythmHeavenMania.Editor
Debug.Log(json);
}
public void DebugSave()
{
// temp
string path = UnityEditor.AssetDatabase.GetAssetPath(GameManager.instance.txt);
path = Application.dataPath.Remove(Application.dataPath.Length - 6, 6) + path;
System.IO.File.WriteAllText(path, JsonConvert.SerializeObject(GameManager.instance.Beatmap));
Debug.Log("Saved to " + path);
}
public void SetGameEventTitle(string txt)
{
GameEventSelectorTitle.text = txt;