Files
ichni_Creator_Studio/Assets/Plugins/Easy Save 3/Scripts/Save Slots/ES3SlotDialog.cs
SoulliesOfficial 8d0abec75f 基础内容
必要插件安装
缓动曲线和动画基础
ElementFolder,Track与其次级模块,PathNode重构
2025-01-26 21:10:16 -05:00

30 lines
872 B
C#

#if ES3_TMPRO && ES3_UGUI
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// A script attached to the error dialog and confirm dialog to provide events which other scripts can receive.
/// </summary>
public class ES3SlotDialog : MonoBehaviour
{
[Tooltip("The UnityEngine.UI.Button Component for the Confirm button.")]
public Button confirmButton;
[Tooltip("The UnityEngine.UI.Button Component for the Cancel button.")]
public Button cancelButton;
protected virtual void OnEnable()
{
// Make it so that the cancel button deactivates the dialog.
cancelButton.onClick.AddListener(() => gameObject.SetActive(false));
}
protected virtual void OnDisable()
{
// Remove any listeners when disabling this dialog.
cancelButton.onClick.RemoveAllListeners();
}
}
#endif