MainPanel脚本重写OnInitPanel方法。
transition=contentPane.GetTransition("WhiteMaskAnim");
transition.Play();
Transition t=panelMask.GetTransition("MaskShow");
t.play();
contentPane.GetChild("Btn_StartGame").OnClick.Add(()=>{ToOtherPanel(UIPanelType.GamePanel);
GameManager.Instance.audioSourceManager.ChangeBGM(1);});
contentPane.GetChild("Btn_Help").OnClick.Add(()=>{ToOtherPanel(UIPanelType.HelpPanel);});
contentPane.GetChild("Btn_Set").OnClick.Add(()=>{ToOtherPanel(UIPanelType.SetPanel);});
contentPane.GetChild("Btn_ExitGame").OnClick.Add(()=>{Application.Quit();});