public override void InitPanel() { base.InitPanel(); transform.localPosition = new Vector3(1024, 0, 0); transform.SetSiblingIndex(5); slideScrollView.Init(); slideCanCoverSrollView.Init(); ShowHelpPage(); }
//处理面板的方法 public override void InitPanel() { transform.SetSiblingIndex(5); //渲染层级 slideScrollView.Init(); slideCoverSrcollView.Init(); ShowHelpPage(); //默认显示HelpPage //从其他面板进入帮助面板并返回主界面的方法 if (transform.localPosition == Vector3.zero) { gameObject.SetActive(false); helpPanelTween.PlayBackwards(); } transform.localPosition = new Vector3(0, -1440, 0); //从下边进场 }
//处理面板的方法 public override void InitPanel() { base.InitPanel(); transform.SetSiblingIndex(5); slideScrollView.Init(); slideCanCoverScrollView.Init(); ShowHelpPage(); //其他处理 if (transform.localPosition == Vector3.zero) { gameObject.SetActive(false); helpPanelTween.PlayBackwards(); } transform.localPosition = new Vector3(1920, 0, 0); }
public override void EnterPanel() { base.EnterPanel(); gameObject.SetActive(true); theSpritePath = filePath + currentBigLevelID.ToString() + "/"; DestoryMapUI(); UpdateMapUI(theSpritePath); UpdateLevelUI(theSpritePath); slideScrollView.Init(); }
//进入面板(由ToThisPanel调用) public override void EnterPanel() { gameObject.SetActive(true); spritePath = filePath + currentBigLevelID.ToString() + "/"; //获取关卡资源路径 //更新动态UI DestroyMapUI(); UpdateMapUI(spritePath); //更新静态UI UpdateLevelUI(spritePath); slideScrollView.Init(); }
//进入退出面板 public override void EnterPanel() { base.EnterPanel(); slideScrollView.Init(); gameObject.SetActive(true); }