BasePanel脚本 进入 退出 跳转功能
1.创建EnterPanel(){
Transition t=panelMask.GetTransition(“MaskShow”);
t.play();}
2.创建protected void ToOtherPanel(UIPanelType otherType){
ExitPanel(()=>{ChangePanelCallback(otherType)});}
3.创建Protected void ExitPanel(PlayCompleteCallback playCompleteCallback){
Transition t=panelMask.GetTransition(“MaskHide”);
t.play(playCompleteCallback);
}
4.protected void ChangePanelCallback(UIPanelType otherType){
uiManager.UIPanelDict[currentUIPanelType].Hide();
uiManager.UIPanelDict[otherType].Show();
uiManager.UIPanelDict[otherType].EnterPanel();
}