Beispiel #1
0
 public bool TryGetCtrl(UIPanel key, out CtrlBase ctrl)
 {
     if (_panels.ContainsKey(key))
     {
         ctrl = _panels[key]; return(true);
     }
     else
     {
         ctrl = null; return(false);
     }
 }
Beispiel #2
0
 private void Push(UIPanel panel, CtrlBase ctrl)
 {
     if (panel == UIPanel.UILogin ||
         panel == UIPanel.UIMain ||
         panel == UIPanel.UITitle)
     {
         Debuger.Log(Author.UI, string.Format("{0} is Ignore!", panel));
     }
     else
     {
         if (_records.Contains(ctrl))
         {
             Debug.LogWarningFormat("The {0} page is opened repeatedly!", panel);
         }
         else
         {
             _records.Add(ctrl);
         }
     }
 }