mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-24 02:25:18 +00:00
2b4b7f0a73
- 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);
|
|
}
|
|
}
|
|
}
|