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); } }
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(); }