Esempio n. 1
0
    void OnDisable()
    {
        m_eCurBuyType     = BUY_TYPE.TYPE_BIND;
        m_FakeObjID       = GlobeVar.INVALID_ID;
        m_FitOnGameObject = null;
        m_eDeadline       = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
        m_CurTabIndex     = TAB_INDEX.TAB_INVALID;

        DestroyPartnerFakeObj();
        SetInstance(null);
        if (GameManager.gameManager.ActiveScene != null)
        {
            GameManager.gameManager.ActiveScene.HideFakeObj();
        }
        if (OPEN_TYPE.OPEN_CHRISTMAS == YuanBaoShopOpenType)
        {
            if (GlobalData.IsChristmasOpen())
            {
                UIManager.ShowUI(UIInfo.ChristmasController);
            }
        }
        if (OPEN_TYPE.OPEN_FESTIVAL == YuanBaoShopOpenType)
        {
            if (GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERFLOWER) ||
                GameManager.gameManager.PlayerDataPool.IsServerFlagOpen(SERVER_FLAGS_ENUM.FLAG_LOVERTHING))
            {
                UIManager.ShowUI(UIInfo.FestivalController);
                return;
            }
        }
        YuanBaoShopOpenType = OPEN_TYPE.OPEN_FUNCTION_BUTTON;
    }
Esempio n. 2
0
 void ChangeGoodsPrice(YuanBaoShopItemLogic.DEADLINE_PRICE eDeadline)
 {
     m_eDeadline = eDeadline;
     foreach (YuanBaoShopItemLogic item in m_GoodsGrid.GetComponentsInChildren <YuanBaoShopItemLogic>())
     {
         item.ChangePrice(eDeadline);
     }
 }
Esempio n. 3
0
        public void Clear()
        {
            FashionGoodsID = GlobeVar.INVALID_ID;
            ArmorGoodsID   = GlobeVar.INVALID_ID;
            WeaponGoodsID  = GlobeVar.INVALID_ID;
            FellowGoodsID  = GlobeVar.INVALID_ID;
            MountGoodsID   = GlobeVar.INVALID_ID;

            FashionID = GlobeVar.INVALID_ID;
            ArmorID   = GlobeVar.INVALID_ID;
            WeaponID  = GlobeVar.INVALID_ID;
            FellowID  = GlobeVar.INVALID_ID;
            MountID   = GlobeVar.INVALID_ID;

            FashionDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
        }
Esempio n. 4
0
    //强化 伙伴 装饰 其他 VIP
    void TabOnClick(TabButton value)
    {
        if (value.name.Contains("Sort01-Tab1"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_STREN);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort02-Tab999"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_BLACKMARKET);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort03-Tab2"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_MOUNT);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort04-Tab3"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_DECORATE);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort05-Tab4"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_OTHER);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort06-Tab5"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.TAB_VIP);

            ShowBindYuanBao();
            m_PreciousTabLabel.SetActive(false);
        }
        else if (value.name.Contains("Sort07-Tab6"))
        {
            m_Deadline.SetActive(false);
            m_eDeadline = YuanBaoShopItemLogic.DEADLINE_PRICE.PRICE_FOREVER;
            UpdateGoodsInfo(TAB_INDEX.VIP_PRECIOUS);

            HideBindYuanBao();
            m_PreciousTabLabel.SetActive(true);
        }
        InitBuyTypeTabButtonChoose();
    }