public override void Execute() { modesController.PrepareAdd(Mode, () => panel.Open(() => { modesController.Add(panel, Mode); DoneInvoke(); })); }
public IPanel OpenUI(string uiBehaviourName, UILevel canvasLevel, IUIData uiData = null, string assetBundleName = null) { IPanel retPanel = null; if (!mAllUI.TryGetValue(uiBehaviourName, out retPanel)) { retPanel = CreateUI(uiBehaviourName, canvasLevel, uiData, assetBundleName); } retPanel.Open(uiData); retPanel.Show(); return(retPanel); }
public IPanel OpenUI(string uiBehaviourName, UITransitionType transitionType, UILevel canvasLevel, IUIData uiData = null, string assetBundleName = null, bool CanOpenPrevious = true) { IPanel retPanel = null; if (!mAllUI.TryGetValue(uiBehaviourName, out retPanel)) { retPanel = CreateUI(uiBehaviourName, transitionType, canvasLevel, uiData, assetBundleName, CanOpenPrevious); } retPanel.Open(uiData); retPanel.Show(); return(retPanel); }