Cleaned up window base code

This commit is contained in:
Pasha Bibko
2026-01-15 11:17:27 +00:00
parent da7cb58ec3
commit fd61dcb2f4
8 changed files with 32 additions and 40 deletions

View File

@@ -1,13 +1,17 @@
namespace InterfaceOff
using UnityEngine;
namespace InterfaceOff
{
public class BasicWindow : WindowBase
{
public override void OnWindowInstantiation()
{
Components.InfoText.text = "Close";
/* Adds a random advert to the display */
Components.WindowImage.sprite = AdvertRegistry.GetRandomAdvert();
Components.WindowImage.color = new Color(1, 1, 1, 1);
}
public override void OnWindowClicked()
public override void OnWindowCloseButtonClicked()
{
Destroy(gameObject);
}