mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00:00
18 lines
No EOL
344 B
C#
18 lines
No EOL
344 B
C#
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);
|
|
}
|
|
}
|
|
} |