HeavenStudioPlus/Assets/Scripts/LevelEditor/SettingsDialog/SettingsDialog.cs
minenice55 b361814c11
editor input locking fix (#175)
* fix keyboard input locking

* add build date auto-generation script
2022-10-13 12:20:48 -04:00

29 lines
No EOL
785 B
C#

using UnityEngine;
using TMPro;
namespace HeavenStudio.Editor
{
public class SettingsDialog : Dialog
{
[SerializeField] private TMP_Text BuildDateDisplay;
private void Start() {}
public void SwitchSettingsDialog()
{
if(dialog.activeSelf) {
Editor.instance.canSelect = true;
Editor.instance.inAuthorativeMenu = false;
dialog.SetActive(false);
} else {
ResetAllDialogs();
Editor.instance.canSelect = false;
Editor.instance.inAuthorativeMenu = true;
dialog.SetActive(true);
BuildDateDisplay.text = GlobalGameManager.buildTime;
}
}
private void Update() {}
}
}