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(); } }
public void ShowHumanInfo(Human human) { HumanInfo.Show(); HumanInfo.SelectHuman(human, true); }