コード例 #1
0
        private void Init()
        {
            this.mCoin                = base.transform.FindChild("Coin");
            this.mBottle              = base.transform.FindChild("Bottle");
            this.mRate                = base.transform.FindChild("Rate");
            this.mGainCoinLabel       = this.mCoin.FindChild("number").GetComponent <UILabel>();
            this.coinBar              = this.mCoin.FindChild("UICircleProgressBar").GetComponent <UICircleProgressBar>();
            this.mBottleLevel         = this.mBottle.FindChild("BottleLevel").GetComponent <UILabel>();
            this.mBottleLevelTemp     = this.mBottle.FindChild("BottleLevelTemp").GetComponent <UILabel>();
            this.mGainBottleExpLabel  = this.mBottle.FindChild("number").GetComponent <UILabel>();
            this.mBottleTexture       = this.mBottle.FindChild("Texture").GetComponent <UITexture>();
            this.bottleBar            = this.mBottle.FindChild("UICircleProgressBar").GetComponent <UICircleProgressBar>();
            this.mCurRateLabel        = this.mRate.FindChild("rank/label").GetComponent <UILabel>();
            this.mRateArcadeEffLabel  = this.mRate.FindChild("arcadeEff").GetComponent <UILabel>();
            this.mProficiencyExpLabel = this.mRate.FindChild("number").GetComponent <UILabel>();
            this.proficiencyBar       = this.mRate.FindChild("UICircleProgressBar").GetComponent <UICircleProgressBar>();
            this.Fx_jiesuan           = base.transform.FindChild("Fx_jiesuan").gameObject;
            this.Fx_bottlelvuptx      = base.transform.FindChild("Fx_bottlelvuptx").GetComponent <EffectPlayTool>();
            this.mCoin.FindChild("GainCoinLabel").GetComponent <UILabel>().text     = LanguageManager.Instance.GetStringById("BattleSettlement_Gold");
            this.mBottle.FindChild("BottleNameLabel").GetComponent <UILabel>().text = LanguageManager.Instance.GetStringById("BattleSettlement_MagicButtleLvl");
            this.mRate.FindChild("TitleLabel").GetComponent <UILabel>().text        = LanguageManager.Instance.GetStringById("BattleSettlement_MatchScore");
            this.mRate.FindChild("ProficiencyLabel").GetComponent <UILabel>().text  = LanguageManager.Instance.GetStringById("BattleSettlement_HeroProficiency");
            this.mDeltaCoin_int   = ModelManager.Instance.Get_Settle_CoinDelta();
            this.mDeltaBottle_int = ModelManager.Instance.Get_Settle_BottleExpDelta();
            this.mDeltaRate_int   = ModelManager.Instance.Get_Settle_ProficiencyExpDelta();
            this.mScore_char      = ModelManager.Instance.Get_Settle_LevelScore();
            int lv = ModelManager.Instance.Get_Settle_BottleExpLevel();

            this.mBottleLevel.text          = lv.ToString();
            this.mBottleTexture.mainTexture = ResourceManager.Load <Texture>(this.GetBottleIcon(lv), true, true, null, 0, false);
            this.initFlag = true;
        }
コード例 #2
0
        private void Init()
        {
            this.mSummonerIcon  = base.transform.Find("BelowEffPanel/Fx_playerlvup/zhong/Sprite").GetComponent <MeshRenderer>();
            this.expBar         = base.transform.Find("UICircleProgressBar").GetComponent <UICircleProgressBar>();
            this.mCurLevel      = base.transform.Find("StaticPanel/Level").GetComponent <UILabel>();
            this.mCurLevelTemp  = base.transform.Find("StaticPanel/LevelTemp").GetComponent <UILabel>();
            this.mGainExpLabel  = base.transform.Find("StaticPanel/AddNum").GetComponent <UILabel>();
            this.mAboveEffPanel = base.transform.Find("AboveEffPanel");
            SysSummonersHeadportraitVo dataById = BaseDataMgr.instance.GetDataById <SysSummonersHeadportraitVo>(ModelManager.Instance.Get_userData_X().Avatar.ToString());

            if (dataById != null)
            {
                this.mSummonerIcon.material.SetTexture("_MainTex", ResourceManager.Load <Texture>(dataById.headportrait_icon, true, true, null, 0, false));
            }
            this.initFlag = true;
        }