Ejemplo n.º 1
0
        /// <summary>
        /// 加载新面板,带效果
        /// </summary>
        /// <param name="panelName"></param>
        /// <param name="abstractScreenEffect"></param>
        public static void PushPanel(string panelName, AbstractScreenEffect abstractScreenEffect)
        {
            var panel = AbstractPanel.GetPanel(panelName);

            abstractScreenEffect.OnBegin(CurrentPanel as AbstractPanel, panel);
            panelStack.Push(panel);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 加载新面板,都带
        /// </summary>
        /// <param name="panelName"></param>
        /// <param name="transition"></param>
        /// <param name="abstractScreenEffect"></param>
        public static void PushPanel(string panelName, AbstractTransition transition,
                                     AbstractScreenEffect abstractScreenEffect)
        {
            var panel = AbstractPanel.GetPanel(panelName);

            transition.onBegin += abstractScreenEffect.OnBegin;
            transition.PushPanel(panel);
            panelStack.Push(panel);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 加载新面板,带动画
        /// </summary>
        /// <param name="panelName"></param>
        /// <param name="transition"></param>
        public static void PushPanel(string panelName, AbstractTransition transition)
        {
            var panel = AbstractPanel.GetPanel(panelName);

            transition.PushPanel(panel);
            panelStack.Push(panel);

//            Debug.Log("入栈:" + panelStack.Count + " name:" + panelName);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 加载一个新面板
        /// </summary>
        /// <param name="name"></param>
        public static void PushPanel(string name)
        {
            if (panelStack.Count != 0)
            {
                panelStack.Peek().Disable();
            }

            var panel = AbstractPanel.GetPanel(name);

            panel.Enable();
            panelStack.Push(panel);
//            Debug.Log("入栈:" + panelStack.Count + " name:" + name);
        }