Exemple #1
0
 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);
 }
Exemple #2
0
 public void BindWorkers()
 {
     personList.Bind(this, Insider);
 }