public void SetInfo(Settlement s) { foreground.sprite = s.getSprite(); background.enabled = false; nameTxt.text = s.name; if (s.title != null && s.title.heldBy != null) { infoTxt.text = "Overseen by " + s.title.heldBy.getFullName(); } else { infoTxt.text = "No Overseer"; } infoTxt.text += "\n" + s.getPrestige() + " Prestige"; }
public void SetInfo(Settlement s) { foreground.sprite = s.getSprite(); foreground.enabled = true; midground.enabled = false; background.enabled = false; name.text = s.name; if (s.title != null && s.title.heldBy != null) { info.text = "Overseen by " + s.title.heldBy.getFullName(); } else { info.text = "No Overseer"; } info.text += "\n" + s.getPrestige().ToString("N0") + " prestige"; name2.text = ""; info2.text = ""; }