public void __LanternNotify() { if (lanternNotifyDescCacheList.Count > 0) { string desc = lanternNotifyDescCacheList.RemoveFirst <string>(); UILanternNotifyPanel panel = Client.instance.uiManager.GetChildPanel <UILanternNotifyPanel>("UILanternNotifyPanel"); panel.Show(desc); } }
void InitPanels() { uiBlackMaskPanel = CreateChildPanel("UIBlackMaskPanel", default(UIBlackMaskPanel), null, GameObject.Find("UIManager/UICanvas/BlackMaskUILayer/UIBlackMaskPanel")); uiShowLogoPanel = CreateChildPanel("UIShowLogoPanel", default(UIShowLogoPanel), null, GameObject.Find("UIManager/UICanvas/BackgroundUILayer/UIShowLogoPanel")); uiLoadingPanel = CreateChildPanel("UILoadingPanel", default(UILoadingPanel), null, GameObject.Find("UIManager/UICanvas/LoadingUILayer/UILoadingPanel")); uiFadePanel = CreateChildPanel("UIFadePanel", default(UIFadePanel), null, GameObject.Find("UIManager/UICanvas/FadeUILayer/UIFadePanel")); uiWaitingPanel = CreateChildPanel("UIWaitingPanel", default(UIWaitingPanel), null, GameObject.Find("UIManager/UICanvas/WaitingUILayer/UIWaitingPanel")); uiLanternNotifyPanel = CreateChildPanel("UILanternNotifyPanel", default(UILanternNotifyPanel), null, GameObject.Find("UIManager/UICanvas/NotifyUILayer/UILanternNotifyPanel")); }