void Awake() { capturable = GetComponentInChildren <Capturable>(); setMaterialProperties = GetComponent <SetMaterialProperties>(); selectable = GetComponentInChildren <Selectable>(); uiController = UIController.Instance; CurrentShip = ShipDataset[0]; if (!StartCaptured) { Team = 2; } if (Team == 2) { selectable.gameObject.SetActive(false); } capturable.Captured += OnCaptured; uiController.StoreUpdated += OnStoreUpdated; }
void OnShipProductionComponentClicked(SOShip shipData) { selectedNode.CurrentShip = shipData; }