private void CreateObjects() { this.mLvlNum = base.transform.Find("lvl").GetComponent<UILabel>(); this.mHpNum = base.transform.Find("hpBg/num").GetComponent<UILabel>(); this.mAttackNum = base.transform.Find("attackBg/num").GetComponent<UILabel>(); this.mWufangNum = base.transform.Find("wufangBg/num").GetComponent<UILabel>(); this.mFafangNum = base.transform.Find("fafangBg/num").GetComponent<UILabel>(); this.mGUIPetTrainYaoShuiLayer = base.transform.Find("yaoshui").gameObject.AddComponent<GUIPetTrainYaoShuiLayer>(); this.mGUIPetTrainYaoShuiLayer.InitWithBaseScene(this.mBaseScene, GameConst.LOPET_EXP_ITEM_ID.Length); }
private void CreateObjects() { this.mLvlNum = base.transform.Find("lvl").GetComponent<UILabel>(); this.mHpNum = base.transform.Find("hpBg/num").GetComponent<UILabel>(); this.mAttackNum = base.transform.Find("attackBg/num").GetComponent<UILabel>(); this.mWufangNum = base.transform.Find("wufangBg/num").GetComponent<UILabel>(); this.mFafangNum = base.transform.Find("fafangBg/num").GetComponent<UILabel>(); for (int i = 0; i < 2; i++) { this.mTab0s[i] = base.transform.Find(string.Format("tab{0}", i)).gameObject; UIEventListener expr_C3 = UIEventListener.Get(this.mTab0s[i]); expr_C3.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_C3.onClick, new UIEventListener.VoidDelegate(this.OnTab0sClick)); this.mTab1s[i] = base.transform.Find(string.Format("tabF{0}", i)).gameObject; } this.mGUIPetTrainYaoShuiLayer = base.transform.Find("yaoshui").gameObject.AddComponent<GUIPetTrainYaoShuiLayer>(); this.mGUIPetTrainYaoShuiLayer.InitWithBaseScene(this.mBaseScene, GameConst.PET_EXP_ITEM_ID.Length); this.mGUIPetTrainTunShiLayer = base.transform.Find("tunshi").gameObject.AddComponent<GUIPetTrainTunShiLayer>(); this.mGUIPetTrainTunShiLayer.InitWithBaseScene(this.mBaseScene); this.mGUISimpleSM = new GUISimpleSM<string, string>("init"); this.mGUISimpleSM.Configure("init").Permit("onYaoShui", "yaoShui").Permit("onTunShi", "tunShi"); this.mGUISimpleSM.Configure("yaoShui").Permit("onTunShi", "tunShi").Ignore("onYaoShui").OnEntry(delegate(GUISimpleSM<string, string>.Transition t) { this.OnEnterYaoShui(); }); this.mGUISimpleSM.Configure("tunShi").Permit("onYaoShui", "yaoShui").Ignore("onTunShi").OnEntry(delegate(GUISimpleSM<string, string>.Transition t) { this.OnEnterTunShi(); }); }