public void ClosePanel () { Debug.Log ("close"); currentExposable.OnSelected (false); isActive = false; currentExposable = null; }
public static bool SetPanelExposable (string TargetPanel, Exposable exposable) { Panel panel = null; UIPanels.TryGetValue (TargetPanel, out panel); if (panel != null) { if (panel.currentExposable == null) { panel.currentExposable = exposable; panel.isActive = true; } return true; } else { return false; } }