Example #1
0
    void Start()
    {
        m_pRootLayout = GameObject.Find(NBUiHelper.NB_UI_MEDAL_UP_COMPLETE);
        NGUITools.AddChild(NBUiHelper.BaseLayer, m_pRootLayout);

        NBHero pCurrentHero = NBGameWorld.SharedInstance().GetMe().GetCurrentHero();

        m_pOld.Init(pCurrentHero.GetCharacterId());
        m_pNew.Init(pCurrentHero.GetCharacterId());

        m_pNew.SetExp(pCurrentHero.GetExp());
        m_pNew.SetQuality(pCurrentHero.GetQuality());
        m_pNew.SetStar(pCurrentHero.GetStar());
        m_pNew.SetPhaseLevel(pCurrentHero.GetPhaseLevel());

        m_pOld.SetExp(pCurrentHero.GetExp());
        m_pOld.SetQuality(pCurrentHero.GetQuality());
        m_pOld.SetStar(pCurrentHero.GetStar());
        m_pOld.SetPhaseLevel(pCurrentHero.GetPhaseLevel() - 1);

        m_pNew.calcAttr();
        m_pOld.calcAttr();

        if (!InitSkill())
        {
            return(false);
        }

        Initleft();
        Initright();

        return(true);
    }
Example #2
0
 public NBMedalUpComplete()
 {
     m_pNew = new NBHero();
     m_pOld = new NBHero();
 }