HeavenStudioPlus/Assets/Scripts/LevelEditor/SettingsDialog/SettingsDialog.cs

29 lines
785 B
C#
Raw Normal View History

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