示例#1
0
 public void EnforceRadio()
 {
     for (int i = 0; i < this.FortressesTable.GetChildren().Count; i++)
     {
         FortressLine component = this.FortressesTable.GetChildren()[i].GetComponent <FortressLine>();
         component.SelectionToggle.State = (component.Fortress == FortressLine.CurrentFortress);
     }
 }
示例#2
0
    private void RefreshFortressLine(AgeTransform tableitem, Fortress fortress, int index)
    {
        tableitem.StartNewMesh = true;
        FortressLine component = tableitem.GetComponent <FortressLine>();

        component.Bind(fortress, this.Empire, this.selectionClient.gameObject, false);
        component.RefreshContent();
        component.AgeTransform.Enable = true;
        component.DisableIfGarrisonIsInEncounter();
    }