Beispiel #1
0
    // 成功刷新英雄
    public void SuccessRefresh(int dream)
    {
        HeroTemplate        temp   = ( HeroTemplate )DataTemplate.GetInstance().m_HeroTable.getTableData(dream);
        HerorecruitTemplate retemp = ( HerorecruitTemplate )DataTemplate.GetInstance().m_HeroRecruitTable.getTableData(dream);

        HeroInfoPop.inst.SetShowData(temp, retemp.getHerolevel());
        HeroInfoPop.inst.SetExchangeHero();

        string number = string.Format(GameUtils.getString("recruit_bubble2"), 1);

        InterfaceControler.GetInst().AddMsgBox(number, HeroInfoPop.inst.selfTransform.transform.parent);
    }
Beispiel #2
0
    // 成功买到一个
    public void SuccessBuyOne(LinkedList <int> herolist)
    {
        foreach (var item in herolist)
        {
            UI_HomeControler.Inst.AddUI(HeroInfoPop.UI_ResPath);
            HeroTemplate        temp   = (HeroTemplate)DataTemplate.GetInstance().m_HeroTable.getTableData(item);
            HerorecruitTemplate retemp = (HerorecruitTemplate)DataTemplate.GetInstance().m_HeroRecruitTable.getTableData(item);
            HeroInfoPop.inst.SetShowData(temp, retemp.getHerolevel());
            HeroInfoPop.inst.SetSingGainHero();

            RefreshDreamValue();
            break;
        }
    }
Beispiel #3
0
    public override void InitUIView()
    {
        base.InitUIView();

        m_BuyOneText.text    = GameUtils.getString("hero_recruit_content5");
        m_BuyTenText.text    = GameUtils.getString("hero_recruit_content6");
        m_LeftPreText.text   = GameUtils.getString("hero_recruit_content16");
        m_CenterPreText.text = GameUtils.getString("hero_recruit_content16");
        m_RightPreText.text  = GameUtils.getString("hero_recruit_content16");

        //m_BottomTipsText.ShowRichText(GameUtils.getString("hero_recruit_content9"));
        m_CenterTipsText.ShowRichText((GameUtils.getString("hero_recruit_content17")));

        InitTipsText();

        try
        {
            m_RecruitScene = GameObject.Find("Recruit_Scene");
            m_CimeliaScene = GameObject.Find("Cimelia_Scene");

            m_RecruitScene.SetActive(true);
            m_CimeliaScene.SetActive(false);
        }
        catch (System.Exception ex)
        {
        }

        // 是否进入兑换英雄界面
        if (ObjectSelf.GetInstance().dream != 0)
        {
            UI_HomeControler.Inst.AddUI(HeroInfoPop.UI_ResPath);
            HeroTemplate        temp   = (HeroTemplate)DataTemplate.GetInstance().m_HeroTable.getTableData(ObjectSelf.GetInstance().dream);
            HerorecruitTemplate retemp = (HerorecruitTemplate)DataTemplate.GetInstance().m_HeroRecruitTable.getTableData(ObjectSelf.GetInstance().dream);
            HeroInfoPop.inst.SetShowData(temp, retemp.getHerolevel());
            HeroInfoPop.inst.SetExchangeHero();
            return;
        }

        // 引导购买一次
        if (GuideManager.GetInstance().isGuideUser&& GuideManager.GetInstance().IsContentGuideID(100202) == false)
        {
            GuideManager.GetInstance().ShowGuideWithIndex(100202);
        }
    }