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