Esempio n. 1
0
 public void SetEmpire(Empire empire)
 {
     selectableComponent.SetColor(empire.GetColor());
     selectableComponent.UpdateName(empire.GetName() + " Fleet");
     selectableComponent.SetShown(true);
     this.empire = empire;
 }
Esempio n. 2
0
 private void Start()
 {
     agentMovementController.onReachedTarget += OnReachTarget;
     select.UpdateName(agentName);
     select.SetScale(0.06f);
     select.SetShown(true);
 }
Esempio n. 3
0
    private void Start()
    {
        SelectableComponent selectableComponent = GetComponentInChildren <SelectableComponent>();

        selectableComponent.UpdateName("PlayerBase");
        selectableComponent.SetScale(0.06f);
        selectableComponent.SetShown(true);
    }
Esempio n. 4
0
    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);
    }
Esempio n. 5
0
 private void ShowOnMap(bool show)
 {
     meshRenderer.enabled    = show;
     capsuleCollider.enabled = show;
     selectableComponent.SetShown(show);
 }