Files
Studio/Assets/Scripts/ExternalAssets/GUIWindows/GUIWindow.cs

18 lines
344 B
C#
Raw Normal View History

2025-02-19 17:24:26 +09:00
using UnityEngine;
namespace Rellac.Windows
{
/// <summary>
/// Simple script to destroy the target GameObject when window is closed
/// </summary>
public class GUIWindow : MonoBehaviour
{
/// <summary>
/// Close window by destroying this GameObject
/// </summary>
public void CloseWindow()
{
Destroy(gameObject);
}
}
}