public void SetEmpire(Empire empire) { selectableComponent.SetColor(empire.GetColor()); selectableComponent.UpdateName(empire.GetName() + " Fleet"); selectableComponent.SetShown(true); this.empire = empire; }
private void Start() { agentMovementController.onReachedTarget += OnReachTarget; select.UpdateName(agentName); select.SetScale(0.06f); select.SetShown(true); }
private void Start() { SelectableComponent selectableComponent = GetComponentInChildren <SelectableComponent>(); selectableComponent.UpdateName("PlayerBase"); selectableComponent.SetScale(0.06f); selectableComponent.SetShown(true); }
public void Start() { m_universe = FindObjectOfType <Universe>(); m_universe.onDayChanged += ProcessDayChange; SelectableComponent select = GetComponentInChildren <SelectableComponent>(); select.UpdateName(m_name); select.SetUnitSelectorText("0"); select.SetScale(0.06f); select.SetShown(true); name = m_name; FindNearbySystems(); outline.SetActive(false); }
private void ShowOnMap(bool show) { meshRenderer.enabled = show; capsuleCollider.enabled = show; selectableComponent.SetShown(show); }