Ejemplo n.º 1
0
		public void ClosePanel ()
		{
			Debug.Log ("close");
			currentExposable.OnSelected (false);
			isActive = false;
			currentExposable = null;
		}
Ejemplo n.º 2
0
		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;
			}
		}