Exemplo n.º 1
0
 public override void Init()
 {
     base.Init();
     MenuTopBarView.CoinNumber         = this.transform.Find("Anchor/Coin/CoinNumber").GetComponent <UILabel>();
     MenuTopBarView.CrystalNumber      = this.transform.Find("Anchor/Crystal/CrystalNumber").GetComponent <UILabel>();
     MenuTopBarView.SpecialMoneyNumber = this.transform.Find("Anchor/Raid/CoinNumber").GetComponent <UILabel>();
     MenuTopBarView.SpecialMoneyName   = this.transform.Find("Anchor/Raid/Name").GetComponent <UILabel>();
     MenuTopBarView.SpecialMoneyIcon   = this.transform.Find("Anchor/Raid/CoinTexture").GetComponent <UISprite>();
     this.HPNumber                  = this.transform.Find("Anchor/HP/HPNumber").GetComponent <UILabel>();
     MenuTopBarView.ButtonCoin      = this.transform.Find("Anchor/Coin/Button");
     MenuTopBarView.ButtonCoin_rule = this.transform.Find("Anchor/Coin/Rule");
     MenuTopBarView.ButtonCrystal   = this.transform.Find("Anchor/Crystal/Button");
     this.titleBg             = this.transform.Find("Anchor/Sprite");
     this.doubleCard          = this.transform.Find("Anchor/DoubleCard");
     this.HPInfo              = this.transform.Find("Anchor/HP/HPInfo");
     this.NowTime             = this.HPInfo.Find("NowTime").GetComponent <UILabel>();
     this.BuyTime             = this.HPInfo.Find("BuyTime").GetComponent <UILabel>();
     this.NextTime            = this.HPInfo.Find("NextTime").GetComponent <UILabel>();
     this.ResetAll            = this.HPInfo.Find("ResetAll").GetComponent <UILabel>();
     this.ResetTime           = this.HPInfo.Find("ResetTime").GetComponent <UILabel>();
     this.Reset               = this.transform.Find("Anchor/Reset/Button");
     this.PingSign            = this.transform.Find("Anchor/PingSign/Button");
     this.VIPNumber           = this.transform.Find("Anchor/VIP/VIPNumber").GetComponent <UILabel>();
     this.CoinDisplay         = this.transform.Find("Anchor/Coin");
     this.DiamondDisplay      = this.transform.Find("Anchor/Crystal");
     this.SpecialMoneyDisplay = this.transform.Find("Anchor/Raid");
     this.name_text           = this.transform.Find("UnStaticTra/NameBack/name").GetComponent <UILabel>();
     this.Item           = this.transform.Find("UnStaticTra/Item");
     this.summonerItem   = this.Item.Find("SummonerItem").GetComponent <SummonerHeadItem>();
     this.BackBtnAnchor  = this.transform.Find("UnStaticTra/BackBtn");
     this.BackBtn        = this.BackBtnAnchor.Find("backBtnSp");
     this.BackBtnLabel   = this.BackBtnAnchor.Find("Name").GetComponent <UILabel>();
     this._panelTimeTips = this.transform.Find("TopAnchor");
     this._labelTime     = this.transform.TryFindChild("TopAnchor/WaitTime/Time").GetComponent <UILabel>();
     this._btnSelectHero = this.transform.TryFindChild("TopAnchor/WaitTime/btn");
     this._expBar        = this.transform.Find("UnStaticTra/NameBack/ExpBar").GetComponent <UISprite>();
     this.BottleNumber   = this.transform.Find("Anchor/MagicBottle/BottleNumber").GetComponent <UILabel>();
     this.ButtonBottle   = this.transform.Find("Anchor/MagicBottle/Button");
     this.BottleRule     = this.transform.Find("Anchor/MagicBottle/Rule");
     this.Fx_pvpwaittime = this.transform.Find("TopAnchor/WaitTime/Fx_pvpwaittime").gameObject;
     this.nameBack_ta    = this.transform.Find("UnStaticTra/NameBack").GetComponent <TweenAlpha>();
     this.nameBack_tp    = this.transform.Find("UnStaticTra/NameBack").GetComponent <TweenPosition>();
     this.item_ta        = this.Item.GetComponent <TweenAlpha>();
     this.item_tp        = this.Item.GetComponent <TweenPosition>();
     this.backBtn_tp     = this.BackBtn.GetComponent <TweenPosition>();
     this.title_ta       = this.BackBtnLabel.GetComponent <TweenAlpha>();
     this.coinEff        = this.transform.FindChild("Anchor/Coin/CoinTexture/Fx_CoinTexture_loop").gameObject;
     this.diamondEff     = this.transform.FindChild("Anchor/Crystal/CrystalTexture/Fx_CrystalTexture_loop").gameObject;
     this.capEff         = this.transform.FindChild("Anchor/MagicBottle/BottleTexture/Fx_bottleTexture_loop").gameObject;
     UIEventListener.Get(MenuTopBarView.ButtonCoin.gameObject).onClick      = new UIEventListener.VoidDelegate(this.OpenCoinRule);
     UIEventListener.Get(MenuTopBarView.ButtonCoin_rule.gameObject).onClick = new UIEventListener.VoidDelegate(this.CloseCoinRule);
     UIEventListener.Get(MenuTopBarView.ButtonCrystal.gameObject).onClick   = new UIEventListener.VoidDelegate(this.AddDiamond);
     UIEventListener.Get(this.Reset.gameObject).onClick          = new UIEventListener.VoidDelegate(this.ResetBtn);
     UIEventListener.Get(this.PingSign.gameObject).onClick       = new UIEventListener.VoidDelegate(this.PingSignBtn);
     UIEventListener.Get(this.Item.gameObject).onClick           = new UIEventListener.VoidDelegate(this.openHUDVIP);
     UIEventListener.Get(this.BackBtn.gameObject).onClick        = new UIEventListener.VoidDelegate(this.OnReturnWindow);
     UIEventListener.Get(this.ButtonBottle.gameObject).onClick   = new UIEventListener.VoidDelegate(this.AddBottle);
     UIEventListener.Get(this.BottleRule.gameObject).onClick     = new UIEventListener.VoidDelegate(this.CloseRule);
     UIEventListener.Get(this._btnSelectHero.gameObject).onClick = new UIEventListener.VoidDelegate(this.OnClickSelectHero);
 }
Exemplo n.º 2
0
 public override void Init()
 {
     base.Init();
     this.name_text    = this.transform.Find("Anchor/NameBack/name").GetComponent <UILabel>();
     this.Item         = this.transform.Find("Anchor/Item");
     this.summonerItem = this.Item.Find("SummonerItem").GetComponent <SummonerHeadItem>();
     UIEventListener.Get(this.Item.gameObject).onClick = new UIEventListener.VoidDelegate(this.openVIP);
 }