Exemplo n.º 1
0
    //外部调用,传入奖励列表//
    public void Show(ERewardPopType popType, params object[] value)
    {
        Init();
        List <VipLevelUpReward> listGoods = (List <VipLevelUpReward>)value[0];

        rewarPopType = popType;
        if (listGoods == null && listGoods.Count == 0)
        {
            isHaveReward = false;
        }
        else
        {
            isHaveReward = true;
        }
        //开始播放特效//
        FinishAct();
        if (isHaveReward)
        {
            haveReward.SetActive(true);
            ShowReward(listGoods);
        }
        else
        {
            haveReward.SetActive(false);
            Invoke("ClosePanel", 2);
        }
        SoundManager.Instance.PlaySoundEffect("Sound_UIEff_VIPUpgrade");
    }
Exemplo n.º 2
0
    //显示pop界面
    public void OpenVipUpgradePanel(ERewardPopType popType, params object[] value)
    {
        if (vipUpgradeEffPanel == null)
        {
            return;
        }
        GameObject effPanel = UI.CreatObjectToNGUI.InstantiateObj(vipUpgradeEffPanel, Point);

        effPanel.transform.localPosition = new Vector3(0, 0, popVipPanelList.Count * 10 - 120);
        popVipPanelList.Add(effPanel);
        VipUpgradeEffPanel vipEff = effPanel.GetComponent <VipUpgradeEffPanel>();

        vipEff.Show(popType, value);
    }