Cleaned up window base code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user