mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-12 04:35:09 +00:00
164c9e9d91
- opening a new dialog closes the previous one
30 lines
No EOL
749 B
C#
30 lines
No EOL
749 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using HeavenStudio.Editor.Track;
|
|
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class SettingsDialog : Dialog
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
|
|
private void Update() {}
|
|
}
|
|
} |