using UnityEngine; namespace Rellac.Windows { /// /// Simple script to destroy the target GameObject when window is closed /// public class GUIWindow : MonoBehaviour { /// /// Close window by destroying this GameObject /// public void CloseWindow() { Destroy(gameObject); } } }