mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 07:57:38 +02:00
add cursor toggle, master volume
This commit is contained in:
18
Assets/GUIWindows/Scripts/GUIWindow.cs
Normal file
18
Assets/GUIWindows/Scripts/GUIWindow.cs
Normal file
@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user