Пример #1
0
 public void PreNotify()
 {
     foreach (string key in uiNotifyPanelDict.Keys)
     {
         UINotifyPanel panel = Client.instance.uiManager.GetChildPanel <UINotifyPanel>(key);
         panel.Rise();
     }
 }
Пример #2
0
        public void Notify(string desc, Transform parent = null, bool isAddToChildPanelStack = false)
        {
            PreNotify();
            UINotifyPanel panel = Client.instance.uiManager.CreateChildPanel(null, default(UINotifyPanel), parent,
                                                                             isAddToChildPanelStack, desc);

            uiNotifyPanelDict[panel.key] = true;
            panel.destroyCallback       += () => { uiNotifyPanelDict.Remove(panel.key); };
        }