Exemplo n.º 1
0
 private void CreateObjects()
 {
     this.PriceIcon = base.transform.Find("PriceIcon").GetComponent<UISprite>();
     this.PriceCount = base.transform.Find("Price").GetComponent<UILabel>();
     this.BuyCount = base.transform.Find("BuyCount").GetComponent<UILabel>();
     this.Hot = base.transform.Find("Hot").GetComponent<UILabel>();
     this.SoldOut = base.transform.Find("SoldOut").gameObject;
     this.BtnBuy = base.transform.Find("BtnBuy").GetComponent<UIButton>();
     UIEventListener expr_B2 = UIEventListener.Get(this.BtnBuy.gameObject);
     expr_B2.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_B2.onClick, new UIEventListener.VoidDelegate(this.OnBuyShopItemClicked));
     this.ItemIcon = base.transform.Find("itemQuality").gameObject.AddComponent<ShopItemIcon>();
     this.ItemIcon.Init();
     UIEventListener expr_10E = UIEventListener.Get(this.ItemIcon.gameObject);
     expr_10E.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_10E.onClick, new UIEventListener.VoidDelegate(this.OnShopItemClicked));
 }
Exemplo n.º 2
0
 public void Init()
 {
     this.ItemIcon = base.transform.Find("itemQuality").gameObject.AddComponent<ShopItemIcon>();
     this.ItemIcon.Init();
     this.PriceIcon = base.transform.Find("PriceIcon").GetComponent<UISprite>();
     this.PriceCount = this.PriceIcon.transform.Find("Price").GetComponent<UILabel>();
     this.PriceIcon1 = base.transform.Find("PriceIcon1").GetComponent<UISprite>();
     this.PriceCount1 = this.PriceIcon1.transform.Find("Price").GetComponent<UILabel>();
     this.Hot = base.transform.Find("Hot").GetComponent<UILabel>();
     this.ok = base.transform.Find("BtnBuy").GetComponent<UIButton>();
     UIEventListener expr_E7 = UIEventListener.Get(this.ok.gameObject);
     expr_E7.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_E7.onClick, new UIEventListener.VoidDelegate(this.OnBuyClicked));
     this.cancel = base.transform.Find("BtnCancel").GetComponent<UIButton>();
     UIEventListener expr_133 = UIEventListener.Get(this.cancel.gameObject);
     expr_133.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_133.onClick, new UIEventListener.VoidDelegate(this.OnCancelClicked));
 }
Exemplo n.º 3
0
 protected void CreateObjects()
 {
     this.PriceIcon = base.transform.Find("PriceIcon0").GetComponent<UISprite>();
     this.PriceCount = this.PriceIcon.transform.Find("Price").GetComponent<UILabel>();
     this.PriceIcon1 = base.transform.Find("PriceIcon1").GetComponent<UISprite>();
     this.PriceCount1 = this.PriceIcon1.transform.Find("Price").GetComponent<UILabel>();
     this.PriceIcon1.gameObject.SetActive(false);
     this.BuyCount = base.transform.Find("BuyCount").GetComponent<UILabel>();
     this.Hot = base.transform.Find("Hot").GetComponent<UILabel>();
     this.mLightBG = base.transform.Find("LightBG").GetComponent<UISprite>();
     this.SoldOut = base.transform.Find("SoldOut").gameObject;
     this.BtnBuy = base.transform.Find("BtnBuy").GetComponent<UIButton>();
     UIEventListener expr_11E = UIEventListener.Get(this.BtnBuy.gameObject);
     expr_11E.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_11E.onClick, new UIEventListener.VoidDelegate(this.OnBuyShopItemClicked));
     this.ItemIcon = base.transform.Find("itemQuality").gameObject.AddComponent<ShopItemIcon>();
     this.ItemIcon.Init();
     UIEventListener expr_17B = UIEventListener.Get(this.ItemIcon.gameObject);
     expr_17B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_17B.onClick, new UIEventListener.VoidDelegate(this.OnShopItemClicked));
 }
Exemplo n.º 4
0
 public void Init()
 {
     this.ItemIcon = base.transform.Find("itemQuality").gameObject.AddComponent<ShopItemIcon>();
     this.ItemIcon.Init();
     this.itemNum = this.ItemIcon.transform.Find("num").GetComponent<UILabel>();
     this.buyTimes = base.transform.Find("buyTimes").GetComponent<UILabel>();
     Transform transform = base.transform.Find("constTip");
     this.PriceIcon0 = transform.transform.Find("PriceIcon0").GetComponent<UISprite>();
     this.PriceCount0 = transform.transform.Find("Price0").GetComponent<UILabel>();
     this.PriceIcon1 = transform.transform.Find("PriceIcon1").GetComponent<UISprite>();
     this.PriceCount1 = transform.transform.Find("Price1").GetComponent<UILabel>();
     this.ok = base.transform.Find("BtnBuy").GetComponent<UIButton>();
     UIEventListener expr_10E = UIEventListener.Get(this.ok.gameObject);
     expr_10E.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_10E.onClick, new UIEventListener.VoidDelegate(this.OnBuyClicked));
     this.cancel = base.transform.Find("BtnCancel").GetComponent<UIButton>();
     UIEventListener expr_15A = UIEventListener.Get(this.cancel.gameObject);
     expr_15A.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_15A.onClick, new UIEventListener.VoidDelegate(this.OnCancelClicked));
     this.numInput = base.transform.Find("numInput").GetComponent<UIIncrementNumberInput>();
     this.numInput.Init();
     UIIncrementNumberInput expr_1A7 = this.numInput;
     expr_1A7.NumberChangedEvent = (UIEventListener.VoidDelegate)Delegate.Combine(expr_1A7.NumberChangedEvent, new UIEventListener.VoidDelegate(this.OnNumberInputChanged));
 }