public void RemoveFocusedPolityPanel(FocusedPolityPanelScript panel) { panel.SetVisible(false); GameObject.Destroy(panel); _activePanels.Remove(panel); }
public void AddFocusedPolity(Polity polity) { FocusedPolityPanelScript focusedPolityPanel = GameObject.Instantiate(FocusedPolityPanelPrefab) as FocusedPolityPanelScript; focusedPolityPanel.Set(polity); focusedPolityPanel.transform.SetParent(transform); focusedPolityPanel.transform.localScale = Vector3.one; focusedPolityPanel.SetVisible(true); _activePanels.Add(focusedPolityPanel); }
// Use this for initialization void Start() { FocusedPolityPanelPrefab.SetVisible(false); }