HeavenStudio/Assets/Scripts/LevelEditor/NewRemixDialog/NewRemixDialog.cs
minenice55 2b4b7f0a73 make all dialogs inherit one base class
- opening a new dialog closes the previous one
2022-08-26 23:43:01 -04:00

27 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);
}
}
}