mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 09:57:38 +02:00
dialog for clearing current remix
This commit is contained in:
27
Assets/Scripts/LevelEditor/NewRemixDialog/NewRemixDialog.cs
Normal file
27
Assets/Scripts/LevelEditor/NewRemixDialog/NewRemixDialog.cs
Normal file
@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user