public void UpdateGarnison() { if (Player.curRegion == null) { return; } var list = Player.curRegion.data.garnison; toGarnison.UpdateList(list.ConvertAll(x => (object)x)); }
public void UpdateInfo() { list.Clear(); foreach (var d in Diplomacy.diplomacies) { if (d != diplomacy) { list.Add(new DiplomacyProxi(diplomacy, d)); } } list.Sort((x, y) => x.relation > y.relation ? -1 : x.relation < y.relation ? 1 : 0); DiplomacyFiller.UpdateList(list.ConvertAll(x => (object)x)); }
public void UpdateArmy() { regimentsCount.text = $"{curArmy.army.Count}/{Person.MaxRegiment}"; army.UpdateList(curArmy.army.ConvertAll(x => (object)x)); }
public void Show(List <Person> persons) { PersonFiller.UpdateList(persons.ConvertAll(x => (object)x)); }