public override void Bind(Entity entity) { base.Bind(entity); if (entity is Building) { Building t = entity as Building; InsiderList.Bind(t, t.Insider); WorkerList.Bind(t, t.Workers); if (t is Inn) { SpecialList.Bind(t, (t as Inn).Livers); SpecialText.text = "Livers"; } else if (t is Company) { SpecialList.Bind(t, (t as Company).Officers); SpecialText.text = "Officers"; } else if (t is Hall) { SpecialList.Bind(t, (t as Hall).Homeless); SpecialText.text = "Homeless"; } else { SpecialList.Clear(); } } GenerationPanel.SetActive(entity is Inn); }
public override void Clear() { base.Clear(); InsiderList.Clear(); SpecialList.Clear(); WorkerList.Clear(); }