HeavenStudioPlus/Assets/Scripts/LevelEditor/NewRemixDialog/NewRemixDialog.cs
2022-08-23 09:38:23 -04:00

27 lines
525 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Editor;
public class NewRemixDialog : MonoBehaviour
{
[SerializeField] private GameObject diag;
public void SwitchNewDialog()
{
if(diag.activeSelf) {
diag.SetActive(false);
} else {
diag.SetActive(true);
}
}
public void Confirm()
{
Editor.instance.NewRemix();
if(diag.activeSelf) {
diag.SetActive(false);
}
}
}