2b4b7f0a73
- opening a new dialog closes the previous one
27 lines
512 B
C#
27 lines
512 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using HeavenStudio.Editor;
|
|
|
|
public class NewRemixDialog : Dialog
|
|
{
|
|
public void SwitchNewDialog()
|
|
{
|
|
if(dialog.activeSelf) {
|
|
dialog.SetActive(false);
|
|
} else {
|
|
ResetAllDialogs();
|
|
dialog.SetActive(true);
|
|
}
|
|
}
|
|
|
|
public void Confirm()
|
|
{
|
|
Editor.instance.NewRemix();
|
|
if(dialog.activeSelf) {
|
|
dialog.SetActive(false);
|
|
}
|
|
}
|
|
}
|