mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-25 11:05:16 +00:00
dialog for clearing current remix
This commit is contained in:
parent
da8c72d9aa
commit
d74dd315d2
4 changed files with 918 additions and 249 deletions
File diff suppressed because it is too large
Load diff
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:
|
Loading…
Reference in a new issue