Exemplo n.º 1
0
    public override void InitPanel()
    {
        base.InitPanel();
        transform.localPosition = new Vector3(1024, 0, 0);
        transform.SetSiblingIndex(5);

        slideScrollView.Init();
        slideCanCoverSrollView.Init();

        ShowHelpPage();
    }
Exemplo n.º 2
0
    //处理面板的方法
    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);  //从下边进场
    }
Exemplo n.º 3
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);
    }
Exemplo n.º 4
0
 public override void EnterPanel()
 {
     base.EnterPanel();
     gameObject.SetActive(true);
     theSpritePath = filePath + currentBigLevelID.ToString() + "/";
     DestoryMapUI();
     UpdateMapUI(theSpritePath);
     UpdateLevelUI(theSpritePath);
     slideScrollView.Init();
 }
Exemplo n.º 5
0
 //进入面板(由ToThisPanel调用)
 public override void EnterPanel()
 {
     gameObject.SetActive(true);
     spritePath = filePath + currentBigLevelID.ToString() + "/"; //获取关卡资源路径
     //更新动态UI
     DestroyMapUI();
     UpdateMapUI(spritePath);
     //更新静态UI
     UpdateLevelUI(spritePath);
     slideScrollView.Init();
 }
Exemplo n.º 6
0
 //进入退出面板
 public override void EnterPanel()
 {
     base.EnterPanel();
     slideScrollView.Init();
     gameObject.SetActive(true);
 }