Ejemplo n.º 1
0
 public static void HumanInfo_eventVisibilityChanged(UIComponent component, bool value)
 {
     humanUI.isEnabled = value;
     if (value)
     {
         //initialize human ui again
         humanUI.transform.parent   = HumanInfo.transform;
         humanUI.size               = new Vector3(HumanInfo.size.x, HumanInfo.size.y);
         humanUI.baseBuildingWindow = HumanInfo.gameObject.transform.GetComponentInChildren <CitizenWorldInfoPanel>();
         humanUI.position           = new Vector3(HumanInfo.size.x, HumanInfo.size.y);
         HumanUI.refeshOnce         = true;
         humanUI.Show();
     }
     else
     {
         humanUI.Hide();
     }
 }
Ejemplo n.º 2
0
 public void ShowHumanInfo(Human human)
 {
     HumanInfo.Show();
     HumanInfo.SelectHuman(human, true);
 }