/// <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); }
/// <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); }
/// <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); }
/// <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); }