mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-26 19:43:01 +00:00
164c9e9d91
- opening a new dialog closes the previous one
26 lines
512 B
C#
26 lines
512 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using HeavenStudio.Editor;
|
|
|
|
public class NewRemixDialog : Dialog
|
|
{
|
|
public void SwitchNewDialog()
|
|
{
|
|
if(dialog.activeSelf) {
|
|
dialog.SetActive(false);
|
|
} else {
|
|
ResetAllDialogs();
|
|
dialog.SetActive(true);
|
|
}
|
|
}
|
|
|
|
public void Confirm()
|
|
{
|
|
Editor.instance.NewRemix();
|
|
if(dialog.activeSelf) {
|
|
dialog.SetActive(false);
|
|
}
|
|
}
|
|
}
|