Added a way to kill children
This commit is contained in:
12
Assets/Scripts/WindowInteractions.cs
Normal file
12
Assets/Scripts/WindowInteractions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace InterfaceOff
|
||||
{
|
||||
public class WindowInteractions : MonoBehaviour
|
||||
{
|
||||
private WindowBase AttachedWindow { get; set; }
|
||||
|
||||
public void SetAttachedTo(WindowBase window) => AttachedWindow = window;
|
||||
public void WindowClicked() => AttachedWindow.OnWindowClicked();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user