mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-24 10:35:16 +00:00
b361814c11
* fix keyboard input locking * add build date auto-generation script
29 lines
No EOL
785 B
C#
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() {}
|
|
}
|
|
} |