Ejemplo n.º 1
0
 private void CreateObjects()
 {
     Transform transform = base.transform.Find("UIMiddle");
     this.mCardModel = transform.Find("modelPos").gameObject;
     this.mGUIPetTitleInfo = transform.Find("topInfoPanel/topInfo").gameObject.AddComponent<GUIPetTitleInfo>();
     this.mGUIPetTitleInfo.InitWithBaseScene();
     this.mGUIPetInfoSceneRightInfo = transform.Find("rightInfo").gameObject.AddComponent<GUIPetInfoSceneRightInfo>();
     this.mGUIPetInfoSceneRightInfo.InitWithBaseScene(this);
     this.mState0Go = transform.Find("state0").gameObject;
     Transform transform2 = this.mState0Go.transform;
     this.mChangePetBtn = transform2.Find("changePetBtn").gameObject;
     UIEventListener expr_B7 = UIEventListener.Get(this.mChangePetBtn);
     expr_B7.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_B7.onClick, new UIEventListener.VoidDelegate(this.OnChangePetBtnClick));
     this.mChangePetBtnMark = this.mChangePetBtn.transform.Find("mark").gameObject;
     this.mChangePetBtnMark.SetActive(false);
     this.mUnBattleBtn = transform2.Find("unBattleBtn").gameObject;
     UIEventListener expr_125 = UIEventListener.Get(this.mUnBattleBtn);
     expr_125.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_125.onClick, new UIEventListener.VoidDelegate(this.OnUnBattleBtnClick));
     GameObject gameObject = transform2.Find("jueXingBtn").gameObject;
     UIEventListener expr_15D = UIEventListener.Get(gameObject);
     expr_15D.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_15D.onClick, new UIEventListener.VoidDelegate(this.OnJueXingBtnClick));
     gameObject.SetActive(false);
     this.mSkillBtn = transform2.Find("skillBtn").gameObject;
     UIEventListener expr_1A6 = UIEventListener.Get(this.mSkillBtn);
     expr_1A6.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_1A6.onClick, new UIEventListener.VoidDelegate(this.OnSkillBtnClick));
     this.mFurtherBtn = transform2.Find("furtherBtn").gameObject;
     UIEventListener expr_1E8 = UIEventListener.Get(this.mFurtherBtn);
     expr_1E8.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_1E8.onClick, new UIEventListener.VoidDelegate(this.OnFurtherBtnClick));
     this.mLevelUpBtn = transform2.Find("lvlUpBtn").gameObject;
     UIEventListener expr_22A = UIEventListener.Get(this.mLevelUpBtn);
     expr_22A.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_22A.onClick, new UIEventListener.VoidDelegate(this.OnLvlUpBtnClick));
     this.mLeftBtn = transform2.Find("leftBtn").gameObject;
     UIEventListener expr_26C = UIEventListener.Get(this.mLeftBtn);
     expr_26C.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_26C.onClick, new UIEventListener.VoidDelegate(this.OnLeftBtnClick));
     this.mRightBtn = transform2.Find("rightBtn").gameObject;
     UIEventListener expr_2AE = UIEventListener.Get(this.mRightBtn);
     expr_2AE.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_2AE.onClick, new UIEventListener.VoidDelegate(this.OnRightBtnClick));
     this.mState1Go = transform.Find("state1").gameObject;
     Transform transform3 = this.mState1Go.transform;
     this.mSuiPianJindu = transform3.Find("expBar").GetComponent<UISlider>();
     this.mSuiPianNumTxt = this.mSuiPianJindu.transform.Find("num").GetComponent<UILabel>();
     GameObject gameObject2 = transform3.Find("littlePlus").gameObject;
     UIEventListener expr_340 = UIEventListener.Get(gameObject2);
     expr_340.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_340.onClick, new UIEventListener.VoidDelegate(this.OnLittlePlusBtnclick));
     gameObject2.SetActive(false);
     GameObject gameObject3 = transform.Find("closeBtn").gameObject;
     UIEventListener expr_382 = UIEventListener.Get(gameObject3);
     expr_382.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_382.onClick, new UIEventListener.VoidDelegate(this.OnCloseBtnClick));
     this.mGUISimpleSM = new GUISimpleSM<string, string>("init");
     this.mGUISimpleSM.Configure("init").Permit("onState0", "state0").Permit("onState1", "state1").Permit("onState2", "state2").Permit("onState3", "state3").Permit("onState4", "state4");
     this.mGUISimpleSM.Configure("state0").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState0();
     });
     this.mGUISimpleSM.Configure("state1").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState1();
     });
     this.mGUISimpleSM.Configure("state2").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState2();
     });
     this.mGUISimpleSM.Configure("state3").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState3();
     });
     this.mGUISimpleSM.Configure("state4").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState4();
     });
 }
Ejemplo n.º 2
0
 private void CreateObjects()
 {
     this.mTextureBgGo = base.transform.Find("TextureBG/Texture").gameObject;
     this.mLopetBG = base.transform.Find("LopetBG").gameObject;
     Transform transform = base.transform.Find("UIMiddle");
     this.mTextureBg = transform.Find("Texture").GetComponent<UITexture>();
     Material material = new Material(Shader.Find("Game/Transparent/Panel TextureMask"));
     this.mTextureBg.material = material;
     UIPanel component = transform.Find("commonPet/midInfo/modelsBg/contentsPanel").GetComponent<UIPanel>();
     Vector4 finalClipRegion = component.finalClipRegion;
     finalClipRegion.x -= 40f;
     finalClipRegion.z = (finalClipRegion.z + 200f) * 0.5f;
     finalClipRegion.w = (finalClipRegion.w + 1024f) * 0.5f;
     this.mTextureBg.material.SetVector("_ClipRange0", new Vector4(-finalClipRegion.x / finalClipRegion.z, -finalClipRegion.y / finalClipRegion.w, 1f / finalClipRegion.z, 1f / finalClipRegion.w));
     this.mSelectItems[0] = transform.Find("pet0").gameObject.AddComponent<GUITeamManageSelectItem>();
     this.mLeftScrollView = transform.Find("leftInfo").GetComponent<UIScrollView>();
     Transform transform2 = this.mLeftScrollView.transform.Find("Content");
     this.mLeftContent = transform2.GetComponent<UIGrid>();
     for (int i = 1; i < 6; i++)
     {
         this.mSelectItems[i] = transform2.Find(string.Format("pet{0}", i)).gameObject.AddComponent<GUITeamManageSelectItem>();
     }
     this.mCommonPetGo = transform.Find("commonPet").gameObject;
     this.mGUIPetTitleInfo = this.mCommonPetGo.transform.Find("topInfo").gameObject.AddComponent<GUIPetTitleInfo>();
     this.mGUIPetTitleInfo.InitWithBaseScene();
     Transform transform3 = this.mCommonPetGo.transform.Find("midInfo");
     this.mUIScrollView = transform3.Find("modelsBg/contentsPanel").GetComponent<UIScrollView>();
     UIScrollView expr_23E = this.mUIScrollView;
     expr_23E.onDragStarted = (UIScrollView.OnDragNotification)Delegate.Combine(expr_23E.onDragStarted, new UIScrollView.OnDragNotification(this.OnModelSWDragStarted));
     UIScrollView expr_265 = this.mUIScrollView;
     expr_265.onStoppedMoving = (UIScrollView.OnDragNotification)Delegate.Combine(expr_265.onStoppedMoving, new UIScrollView.OnDragNotification(this.OnModelSWDragFinished));
     this.mModelTable = transform3.Find("modelsBg/contentsPanel/contents").gameObject.AddComponent<UIGrid>();
     this.mModelTable.arrangement = UIGrid.Arrangement.Horizontal;
     this.mModelTable.cellWidth = 450f;
     this.mModelTable.cellHeight = 360f;
     this.mModelTable.animateSmoothly = true;
     this.mModelTable.hideInactive = true;
     this.mModelTable.keepWithinPanel = true;
     this.mModelTable.sorting = UIGrid.Sorting.Alphabetic;
     this.mModelTable.enabled = false;
     GameObject gameObject = transform3.Find("modelsBg/contentsPanel/contents").gameObject;
     this.mModelCenterChild = gameObject.AddComponent<GUICenterModelItem>();
     this.mModelCenterChild.Init();
     this.mModelCenterChild.nextPageThreshold = 120f;
     this.mModelCenterChild.springStrength = 8f;
     for (int j = 0; j < 6; j++)
     {
         this.mTeamModelItems[j] = gameObject.transform.Find(string.Format("teamManageModel{0}", j)).gameObject.AddComponent<GUITeamManageModelItem>();
         this.mTeamModelItems[j].InitWithBaseScene(this);
         this.mModelWidgets[j] = this.mTeamModelItems[j].transform;
     }
     if (Tools.CanPlay(GameConst.GetInt32(201), this.IsLocalPlayer))
     {
         this.mSelectItems[4].gameObject.SetActive(true);
         this.mTeamModelItems[4].gameObject.SetActive(true);
     }
     else
     {
         this.mSelectItems[4].gameObject.SetActive(false);
         this.mTeamModelItems[4].gameObject.SetActive(false);
     }
     for (int k = 0; k < 6; k++)
     {
         this.mEquipItems[k] = transform3.Find(string.Format("item{0}", k)).gameObject.AddComponent<GUITeamManageEquipItem>();
         this.mEquipItems[k].InitWithBaseScene(this, k);
     }
     this.mYangChengBtn = transform3.Find("yangCBtn").gameObject;
     UIEventListener expr_4A0 = UIEventListener.Get(this.mYangChengBtn);
     expr_4A0.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_4A0.onClick, new UIEventListener.VoidDelegate(this.OnYangCBtnClick));
     this.mYangChengMark = this.mYangChengBtn.transform.Find("Effect").gameObject;
     this.mYangChengMark.SetActive(false);
     this.mEnhanceBtn = transform3.Find("enhanceBtn").gameObject;
     UIEventListener expr_50F = UIEventListener.Get(this.mEnhanceBtn);
     expr_50F.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_50F.onClick, new UIEventListener.VoidDelegate(this.OnEnhanceBtnClick));
     this.mShiZhuangBtn = transform3.Find("shiZhuangBtn").gameObject;
     UIEventListener expr_552 = UIEventListener.Get(this.mShiZhuangBtn);
     expr_552.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_552.onClick, new UIEventListener.VoidDelegate(this.OnShiZhuangBtnClick));
     this.mShiZhuangBtnEffect = this.mShiZhuangBtn.transform.Find("Effect").gameObject;
     this.mShiZhuangBtnEffect.SetActive(false);
     this.mShiZhuangBtn.SetActive(false);
     this.mChangePetBtn = transform3.Find("changePetBtn").gameObject;
     UIEventListener expr_5CD = UIEventListener.Get(this.mChangePetBtn);
     expr_5CD.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_5CD.onClick, new UIEventListener.VoidDelegate(this.OnChangePetBtnClick));
     this.mChangePetBtnEffect = this.mChangePetBtn.transform.Find("Effect").gameObject;
     this.mChangePetBtnEffect.SetActive(false);
     this.mChangePetBtn.SetActive(false);
     this.mEnhanceAllBtn = transform3.Find("enhanceAllBtn").gameObject;
     UIEventListener expr_648 = UIEventListener.Get(this.mEnhanceAllBtn);
     expr_648.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_648.onClick, new UIEventListener.VoidDelegate(this.OnEnhanceAllBtnClick));
     this.mHuanZhuangBtn = transform3.Find("huanZhuangBtn").gameObject;
     UIEventListener expr_68B = UIEventListener.Get(this.mHuanZhuangBtn);
     expr_68B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_68B.onClick, new UIEventListener.VoidDelegate(this.OnHuanZhuangBtnClick));
     Transform transform4 = this.mCommonPetGo.transform.Find("rightInfo");
     this.mRightInfoTable = transform4.Find("rightInfoPanel/contents").GetComponent<UITable>();
     this.mSkillGo = this.mRightInfoTable.transform.Find("b").gameObject;
     this.mSkillLayer = this.mSkillGo.transform.Find("summonSkill").gameObject.AddComponent<GUIPetInfoSkillLayer>();
     this.mSkillLayer.Init(false, false);
     this.mSkillGo.SetActive(false);
     Transform transform5 = this.mRightInfoTable.transform.Find("a");
     this.mHpNum = transform5.Find("hpTxt/num").GetComponent<UILabel>();
     this.mHpNum.text = string.Empty;
     this.mAttackNum = transform5.Find("attackTxt/num").GetComponent<UILabel>();
     this.mAttackNum.text = string.Empty;
     this.mWuFangNum = transform5.Find("wufangTxt/num").GetComponent<UILabel>();
     this.mWuFangNum.text = string.Empty;
     this.mFaFangNum = transform5.Find("fafangTxt/num").GetComponent<UILabel>();
     this.mFaFangNum.text = string.Empty;
     Transform transform6 = this.mRightInfoTable.transform.Find("c");
     UIEventListener expr_80E = UIEventListener.Get(transform6.gameObject);
     expr_80E.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_80E.onClick, new UIEventListener.VoidDelegate(this.OnPetInfoCPartClick));
     this.mYuanFenDesc = transform6.Find("yuanfenDesc").GetComponent<UILabel>();
     UIEventListener expr_856 = UIEventListener.Get(this.mYuanFenDesc.gameObject);
     expr_856.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_856.onClick, new UIEventListener.VoidDelegate(this.OnYuanFenClick));
     this.mYuanFenDesc.text = string.Empty;
     this.mLittlePet = transform.Find("littlePet").gameObject;
     this.mPetZhuWeiBtn = this.mLittlePet.transform.Find("zhuWeiBtn").gameObject;
     this.mLopetLayer = transform.Find("Lopet").gameObject.AddComponent<TeamLopetLayer>();
     this.mLopetLayer.gameObject.SetActive(false);
     this.mPetZhuWeiMark = this.mPetZhuWeiBtn.transform.Find("mark").gameObject;
     this.mPetZhuWeiMark.SetActive(false);
     UIEventListener expr_920 = UIEventListener.Get(this.mPetZhuWeiBtn);
     expr_920.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_920.onClick, new UIEventListener.VoidDelegate(this.OnPetZhuWeiBtnClick));
     this.mPetZhuWeiBtn.SetActive(this.IsLocalPlayer && Tools.CanPlay(GameConst.GetInt32(29), true));
     Transform transform7 = this.mLittlePet.transform.Find("pets");
     for (int l = 0; l < 6; l++)
     {
         this.mAssistPets[l] = transform7.Find(string.Format("pet{0}", l)).gameObject.AddComponent<GUITeamManageAssitPetItem>();
         this.mAssistPets[l].InitWithBaseScene(this, l);
     }
     Transform transform8 = this.mLittlePet.transform.Find("yuanFenInfo");
     this.mPetYuanFenItemScrollView = transform8.Find("contentsPanel").GetComponent<UIScrollView>();
     this.mGUIPetYuanFenItemTable = transform8.Find("contentsPanel/contents").gameObject.AddComponent<UITable>();
     this.mGUIPetYuanFenItemTable.columns = 1;
     this.mGUIPetYuanFenItemTable.direction = UITable.Direction.Down;
     this.mGUIPetYuanFenItemTable.sorting = UITable.Sorting.None;
     this.mGUIPetYuanFenItemTable.hideInactive = true;
     this.mGUIPetYuanFenItemTable.keepWithinPanel = true;
     this.mGUIPetYuanFenItemTable.padding = new Vector2(0f, 0f);
     this.mGUISimpleSM = new GUISimpleSM<string, string>("init");
     this.mGUISimpleSM.Configure("init").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet");
     this.mGUISimpleSM.Configure("avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").PermitReentry("showAvatar").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterAvatar();
     });
     this.mGUISimpleSM.Configure("pet0").Permit("showAvatar", "avatar").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet0").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet0();
     });
     this.mGUISimpleSM.Configure("pet1").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet1").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet1();
     });
     this.mGUISimpleSM.Configure("pet2").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet2").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet2();
     });
     this.mGUISimpleSM.Configure("lopet").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Ignore("showLopet").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterLopet();
     });
     this.mGUISimpleSM.Configure("pet3").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showLopet", "lopet").Ignore("showPet3").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet3();
     });
 }
Ejemplo n.º 3
0
 private void CreateObjects()
 {
     Transform transform = base.transform.Find("UIMiddle");
     Transform transform2 = transform.Find("winBg");
     this.mCardModel = transform.Find("flower/modelPos").gameObject;
     this.mModelLvlupEffect = this.mCardModel.transform.Find("ui56").gameObject;
     Tools.SetParticleRenderQueue2(this.mModelLvlupEffect, 4500);
     NGUITools.SetActive(this.mModelLvlupEffect, false);
     this.mTmpTransform = this.mModelLvlupEffect.transform;
     this.mModelLvlupEffect2 = this.mCardModel.transform.Find("ui56_3").gameObject;
     Tools.SetParticleRenderQueue2(this.mModelLvlupEffect2, 4500);
     NGUITools.SetActive(this.mModelLvlupEffect2, false);
     this.mModelEffect75 = this.mCardModel.transform.Find("ui75").gameObject;
     Tools.SetParticleRenderQueue2(this.mModelEffect75, 4500);
     NGUITools.SetActive(this.mModelEffect75, false);
     this.mState2 = transform2.Find("state2").gameObject;
     for (int i = 0; i < 3; i++)
     {
         this.mLopetTabs[i] = this.mState2.transform.Find(string.Format("tab{0}", i)).gameObject;
         UIEventListener expr_14F = UIEventListener.Get(this.mLopetTabs[i]);
         expr_14F.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_14F.onClick, new UIEventListener.VoidDelegate(this.OnTab2Click));
         this.mLopetFTabs[i] = this.mState2.transform.Find(string.Format("tabF{0}", i)).gameObject;
     }
     this.mLopetLvlUpNewMark = this.mLopetTabs[1].transform.Find("newMark1").gameObject;
     this.mLopetLvlUpNewMark.SetActive(false);
     this.mLopetAwakeNewMark = this.mLopetTabs[2].transform.Find("newMark1").gameObject;
     this.mLopetAwakeNewMark.SetActive(false);
     this.mState0 = transform2.Find("state0").gameObject;
     Transform transform3 = this.mState0.transform;
     for (int j = 0; j < 6; j++)
     {
         this.mTab0s[j] = transform3.Find(string.Format("tab{0}", j)).gameObject;
         UIEventListener expr_261 = UIEventListener.Get(this.mTab0s[j]);
         expr_261.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_261.onClick, new UIEventListener.VoidDelegate(this.OnTab0Click));
         this.mTab1s[j] = transform3.Find(string.Format("tabF{0}", j)).gameObject;
     }
     this.mLvlUpNewMark = this.mTab0s[1].transform.Find("newMark1").gameObject;
     this.mLvlUpNewMark.SetActive(false);
     this.mJinJieNewMark = this.mTab0s[2].transform.Find("newMark1").gameObject;
     this.mJinJieNewMark.SetActive(false);
     this.mSkillUpNewMark = this.mTab0s[3].transform.Find("newMark1").gameObject;
     this.mSkillUpNewMark.SetActive(false);
     this.mPeiYangNewMark = this.mTab0s[4].transform.Find("newMark1").gameObject;
     this.mPeiYangNewMark.SetActive(false);
     this.mJueXingNewMark = this.mTab0s[5].transform.Find("newMark1").gameObject;
     this.mJueXingNewMark.SetActive(false);
     this.mState1 = transform2.Find("state1").gameObject;
     Transform transform4 = this.mState1.transform;
     for (int k = 0; k < 4; k++)
     {
         this.mTab10s[k] = transform4.Find(string.Format("tab{0}", k)).gameObject;
         UIEventListener expr_3FA = UIEventListener.Get(this.mTab10s[k]);
         expr_3FA.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_3FA.onClick, new UIEventListener.VoidDelegate(this.OnTab10Click));
         this.mTab11s[k] = transform4.Find(string.Format("tabF{0}", k)).gameObject;
     }
     this.mJinJieNewMarkPlayer = this.mTab10s[1].transform.Find("newMark1").gameObject;
     this.mJinJieNewMarkPlayer.SetActive(false);
     this.mPeiYangNewMarkPlayer = this.mTab10s[2].transform.Find("newMark1").gameObject;
     this.mPeiYangNewMarkPlayer.SetActive(false);
     this.mJueXingNewMarkPlayer = this.mTab10s[3].transform.Find("newMark1").gameObject;
     this.mJueXingNewMarkPlayer.SetActive(false);
     Transform transform5 = transform.Find("topInfoPanel");
     this.mGUIPetTitleInfo = transform5.Find("topInfo").gameObject.AddComponent<GUIPetTitleInfo>();
     this.mGUIPetTitleInfo.InitWithBaseScene();
     this.mGUILopetTitleInfo = transform5.Find("lopetTopInfo").gameObject.AddComponent<GUILopetTitleInfo>();
     this.mAwakeShopBtn = transform5.Find("awakeShop").gameObject;
     UIEventListener expr_54B = UIEventListener.Get(this.mAwakeShopBtn);
     expr_54B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_54B.onClick, new UIEventListener.VoidDelegate(this.OnAwakeShopBtnClick));
     GameObject gameObject = this.mAwakeShopBtn.transform.Find("ui77").gameObject;
     Tools.SetParticleRenderQueue2(gameObject, 4000);
     Transform transform6 = transform2.Find("rightInfo");
     this.mRightInfoGo = transform6.gameObject;
     this.mGUIPetTrainLvlUpInfo = transform6.Find("lvlInfo").gameObject.AddComponent<GUIPetTrainLvlUpInfo>();
     this.mGUIPetTrainLvlUpInfo.InitWithBaseScene(this);
     this.mGUIPetTrainJinjieInfo = transform6.Find("jinJieInfo").gameObject.AddComponent<GUIPetTrainJinjieInfo>();
     this.mGUIPetTrainJinjieInfo.InitWithBaseScene(this);
     this.mGUIPetTrainSkillInfo = transform6.Find("jiNengInfo").gameObject.AddComponent<GUIPetTrainSkillInfo>();
     this.mGUIPetTrainSkillInfo.InitWithBaseScene(this);
     this.mLeftBtn = transform.Find("leftBtn").gameObject;
     UIEventListener expr_647 = UIEventListener.Get(this.mLeftBtn);
     expr_647.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_647.onClick, new UIEventListener.VoidDelegate(this.OnLeftBtnClick));
     this.mRightBtn = transform.Find("rightBtn").gameObject;
     UIEventListener expr_689 = UIEventListener.Get(this.mRightBtn);
     expr_689.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_689.onClick, new UIEventListener.VoidDelegate(this.OnRightBtnClick));
     this.mGUISimpleSM = new GUISimpleSM<string, string>("init");
     this.mLvlUpTrigger = this.mGUISimpleSM.SetTriggerParameters<int>("onLvlUp");
     this.mGUISimpleSM.Configure("init").Permit("onBaseInfo", "baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).Permit("onJinJie", "jinJie").PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onPeiYang", "peiYang").Permit("onJueXing", "jueXing");
     this.mGUISimpleSM.Configure("baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onJinJie", "jinJie").Permit("onPeiYang", "peiYang").Permit("onJueXing", "jueXing").PermitReentry("onBaseInfo").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterBaseInfo();
     });
     this.mGUISimpleSM.Configure("lvlUp").Permit("onBaseInfo", "baseInfo").Permit("onJinJie", "jinJie").PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onPeiYang", "peiYang").Permit("onJueXing", "jueXing").PermitReentry("onLvlUp").OnEntryFrom<int>(this.mLvlUpTrigger, delegate(int index)
     {
         this.OnEnterLvlUp(index);
     });
     this.mGUISimpleSM.Configure("jinJie").Permit("onBaseInfo", "baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onPeiYang", "peiYang").Permit("onJueXing", "jueXing").PermitReentry("onJinJie").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterJinJie();
     });
     this.mGUISimpleSM.Configure("skill").Permit("onBaseInfo", "baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).Permit("onJinJie", "jinJie").Permit("onPeiYang", "peiYang").Permit("onJueXing", "jueXing").Ignore("onSkill").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterSkill();
     });
     this.mGUISimpleSM.Configure("jueXing").Permit("onBaseInfo", "baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).Permit("onJinJie", "jinJie").PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onPeiYang", "peiYang").PermitReentry("onJueXing").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterJueXing();
     });
     this.mGUISimpleSM.Configure("peiYang").Permit("onBaseInfo", "baseInfo").PermitIf("onLvlUp", "lvlUp", new Func<bool>(this.CurCanLvlUp)).Permit("onJinJie", "jinJie").PermitIf("onSkill", "skill", new Func<bool>(this.CurPetIsNotPlayer)).Permit("onJueXing", "jueXing").PermitReentry("onPeiYang").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPeiYang();
     });
 }