Example #1
0
 public override void Execute()
 {
     modesController.PrepareAdd(Mode, () => panel.Open(() =>
     {
         modesController.Add(panel, Mode);
         DoneInvoke();
     }));
 }
Example #2
0
        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);
        }
Example #3
0
        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);
        }