mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-11 04:05:11 +00:00
2b4b7f0a73
- 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() {}
|
|
}
|
|
} |