mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
a48ecff2e8
* fix keyboard input locking * add build date auto-generation script
28 lines
No EOL
677 B
C#
28 lines
No EOL
677 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using HeavenStudio.Editor.Track;
|
|
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class Dialog : MonoBehaviour
|
|
{
|
|
[SerializeField] protected GameObject dialog;
|
|
public void ForceState(bool onoff = false)
|
|
{
|
|
Editor.instance.canSelect = !onoff;
|
|
Editor.instance.inAuthorativeMenu = onoff;
|
|
dialog.SetActive(onoff);
|
|
}
|
|
|
|
public static void ResetAllDialogs()
|
|
{
|
|
foreach(var dialog in FindObjectsOfType<Dialog>())
|
|
{
|
|
dialog.ForceState(false);
|
|
}
|
|
}
|
|
}
|
|
} |