Updated advert registry

This commit is contained in:
Pasha Bibko
2026-01-15 12:09:22 +00:00
parent 4eea7f8836
commit b5ae378453
24 changed files with 280 additions and 267 deletions

View File

@@ -7,7 +7,9 @@ namespace InterfaceOff
public override void OnWindowInstantiation()
{
/* Adds a random advert to the display */
Components.WindowImage.sprite = AdvertRegistry.GetRandomAdvert();
Advert advert = AdvertRegistry.GetRandomAdvert();
Components.WindowImage.sprite = advert.Image;
Components.InfoText.text = advert.Name;
Components.WindowImage.color = new Color(1, 1, 1, 1);
/* Calculates a random velocity direction */