mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:17:38 +02:00
dialog for clearing current remix
This commit is contained in:
8
Assets/Scripts/LevelEditor/NewRemixDialog.meta
Normal file
8
Assets/Scripts/LevelEditor/NewRemixDialog.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb311ef0878d3e342bdfb042366b90e5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
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);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e1b2b36751952147bb6126f9ffd6086
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user