ShipSelectionUI

  • Type : Public class
  • Inherents from MonoBehaviour
  • Namespace : SlateShipyard.ShipSpawner.SelectionUI

UI element to select and spawn ships from ShipSpawnerManager.

Properties


Public Properties

LaunchPadSpawn

The LaunchPadSpawn being used.

ShipVisualizationUI

The ShipVisualizationUI to display the selected ship data.

Text

Text UI element to display messages and warnings.

InteractReceiver

The button to select the next ship on the list.

InteractReceiver

The button to select the previous ship on the list.

InteractReceiver

The button to spawn the current selected ship.

Methods


Public Methods

void Start()

The Start method.

void OnDestroy()

The OnDestroy method.

void OnNextPageInteract()

The method called to select the next ship on the list.

void OnPreviousPageInteract()

The method called to select the previous ship on the list.

void OnSelectInteract()

The method called to spawn the currently selected ship.

void WriteTextOnDisplay(string text)

Writes text on the middle text ui and removes it after 2 seconds.