public override void ShowMe()
    {
        quit = false;
        this.GetComponent <RectTransform>().anchoredPosition = new Vector2(400, 0);
        this.GetComponent <RectTransform>().sizeDelta        = new Vector2(800, 800);

        sv = new Mugen <ShopCellInfo, ShopCell>();
        sv.InitCotentAndSVH(content, 580);
        sv.InitItemSizeAndCol(300, 100, 20, 1);
        sv.InitItemResName("ShopCell");
        sv.InitInfos(GameDataMgr.Instance.playerInfo.shopList);

        sv.CheckShowOrHide();

        //选择框
        seleObj   = GetControl <Image>("imgSele").gameObject;
        seleIndex = sv.seleIndex;

        //禁用人物移动
        PlayerStatus.Instance.IsForzen = true;

        //告知位置
        Invoke("CheckSeleObjPos", 0.1f);

        //添加选择框监听事件
        AddInputListener();
    }
Example #2
0
    public override void ShowMe()
    {
        base.ShowMe();
        PanelSlideIn();

        sv = new Mugen <ItemInfo, HunterCell>();
        sv.InitCotentAndSVH(content, 700);
        sv.InitItemSizeAndCol(450, 120, 20, 1);
        sv.InitItemResName("HunterCell");
        sv.InitInfos(GameDataMgr.Instance.playerInfo.hunterList);

        //显示面板时,更新格子信息
        sv.CheckShowOrHide();

        //选择框
        seleObj   = GetControl <Image>("imgSele").gameObject;
        seleIndex = sv.seleIndex;

        //更新TipsPanel的信息
        Invoke("CheckSeleObjPos", 0.5f);

        //增加PanelChange的监听
        EventCenter.Instance.AddEventListener <int>("PanelChange", PanelSlideOut);
    }