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; }
private void OnDestroy() { this.ClearResources(); this.cMgr.StopAllCoroutine(); this.Fx_jiesuan = null; this.Fx_bottlelvuptx = null; MobaMessageManager.UnRegistMessage((ClientMsg)23032, new MobaMessageFunc(this.onMsg_showNormal)); }
private void Awake() { this.playTool = base.GetComponent <EffectPlayTool>(); }