HeavenStudioPlus/Assets/Scripts/LevelEditor/NewRemixDialog/NewRemixDialog.cs

27 lines
512 B
C#
Raw Normal View History

2022-08-23 13:38:23 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Editor;
public class NewRemixDialog : Dialog
2022-08-23 13:38:23 +00:00
{
public void SwitchNewDialog()
{
if(dialog.activeSelf) {
dialog.SetActive(false);
2022-08-23 13:38:23 +00:00
} else {
ResetAllDialogs();
dialog.SetActive(true);
2022-08-23 13:38:23 +00:00
}
}
public void Confirm()
{
Editor.instance.NewRemix();
if(dialog.activeSelf) {
dialog.SetActive(false);
2022-08-23 13:38:23 +00:00
}
}
}