1.GameBasePanel脚本
在构造方法中,加入
messageManager=GameManager.Instance.messageManager;
if(uiPanelType==UIPanelType.DayNightPanel){isDayNightPanel=true;}
2.OnInitPanel方法
if(!isDayNightPanel){
openAnimCom,closeAnimCom,openEye,closeEye,certainButton获取
}
guideMessage,messageController,controller
3.public virtual void HandleGameAction(UIPanelType currentGamePanelType){}
4.public virtual void ToCurrentPanel()
{controller.selectedIndex=0;
messageController.selectedIndex=0;
openEye.visible=true;
closeEye.visible=false;
openEye.SetPlaySettings(1,16,1,1);
openEye.playing=true;
if(firstTimeInThisPanel)
{openEye.onPlayEnd.Add(()=>{controller.selectedIndex=1;messageController.selectedIndex=1;openEye.visible=false;})}
}