private void CreateObjects() { this.mTargetLineGo = base.transform.Find("targetLine").gameObject; Transform transform = this.mTargetLineGo.transform; this.mTargetVipGo = transform.Find("VIP").gameObject; Transform transform2 = this.mTargetVipGo.transform; this.mTargetVipNum0 = transform2.Find("Tens").GetComponent<UISprite>(); this.mTargetVipNum1 = transform2.Find("Single").GetComponent<UISprite>(); this.mTargetIcon = transform.Find("CharIcon").GetComponent<UISprite>(); UIEventListener expr_9B = UIEventListener.Get(this.mTargetIcon.gameObject); expr_9B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_9B.onClick, new UIEventListener.VoidDelegate(this.OnTargetIconClick)); this.mTargetSystem = transform.Find("System").GetComponent<UISprite>(); this.mTargetSystem.spriteName = "pet_0019a"; this.mTargetQuality = transform.Find("Frame").GetComponent<UISprite>(); this.mTargetBg = transform.Find("bg").GetComponent<UISprite>(); this.mTargetName = this.mTargetBg.transform.Find("name").GetComponent<UILabel>(); this.mTargetTime = this.mTargetBg.transform.Find("time").GetComponent<UILabel>(); this.mTargetMsg = this.mTargetBg.transform.Find("desc").GetComponent<UILabel>(); this.mTargetMsg.spaceIsNewLine = false; UIEventListener expr_18A = UIEventListener.Get(this.mTargetMsg.gameObject); expr_18A.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_18A.onClick, new UIEventListener.VoidDelegate(this.OnTargetMsgClick)); this.mTargetEmotionSprite = this.mTargetBg.transform.Find("emotion").gameObject.AddComponent<GUIEmotionSprite>(); this.mTargetEmotionSprite.InitObjects(); this.mTargetVoiceBg = this.mTargetBg.transform.Find("voiceBg").gameObject; this.mTargetVoiceNoPlayTag = this.mTargetVoiceBg.transform.Find("noMark").gameObject; UIEventListener expr_226 = UIEventListener.Get(this.mTargetVoiceNoPlayTag); expr_226.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_226.onClick, new UIEventListener.VoidDelegate(this.OnTargetVoiceNoPlayTagClick)); this.mTargetVoicePlayedTag = this.mTargetVoiceBg.transform.Find("mark").gameObject; UIEventListener expr_272 = UIEventListener.Get(this.mTargetVoicePlayedTag); expr_272.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_272.onClick, new UIEventListener.VoidDelegate(this.OnTargetVoiceNoPlayTagClick)); this.mTargetVoiceTimeNum = this.mTargetVoiceBg.transform.Find("txt").GetComponent<UILabel>(); this.mTargetVoiceDesc = this.mTargetVoiceBg.transform.Find("desc").GetComponent<UILabel>(); this.mTargetVoiceDesc.spaceIsNewLine = false; UIEventListener expr_2EF = UIEventListener.Get(this.mTargetVoiceDesc.gameObject); expr_2EF.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_2EF.onClick, new UIEventListener.VoidDelegate(this.OnTargetVoiceMsgClick)); this.mTargetVoiceYinLiang = this.mTargetVoiceBg.transform.Find("yinLiang").gameObject; UIEventListener expr_33B = UIEventListener.Get(this.mTargetVoiceYinLiang); expr_33B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_33B.onClick, new UIEventListener.VoidDelegate(this.OnTargetVoiceYinLiangClick)); this.mTargetVoiceBg.SetActive(false); this.mSelfLineGo = base.transform.Find("selfLine").gameObject; Transform transform3 = this.mSelfLineGo.transform; this.mSelfVipGo = transform3.Find("VIP").gameObject; Transform transform4 = this.mSelfVipGo.transform; this.mSelfVipNum0 = transform4.Find("Tens").GetComponent<UISprite>(); this.mSelfVipNum1 = transform4.Find("Single").GetComponent<UISprite>(); this.mSelfIcon = transform3.Find("CharIcon").GetComponent<UISprite>(); this.mSelfQuality = this.mSelfIcon.transform.Find("Frame").GetComponent<UISprite>(); this.mSelfBg = transform3.Find("bg").GetComponent<UISprite>(); this.mSelfName = this.mSelfBg.transform.Find("name").GetComponent<UILabel>(); this.mSelfTime = this.mSelfBg.transform.Find("time").GetComponent<UILabel>(); this.mSelfMsg = this.mSelfBg.transform.Find("desc").GetComponent<UILabel>(); this.mSelfMsg.spaceIsNewLine = false; UIEventListener expr_4A5 = UIEventListener.Get(this.mSelfMsg.gameObject); expr_4A5.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_4A5.onClick, new UIEventListener.VoidDelegate(this.OnSelfMsgClick)); this.mSelfEmotionSprite = this.mSelfBg.transform.Find("emotion").gameObject.AddComponent<GUIEmotionSprite>(); this.mSelfEmotionSprite.InitObjects(); this.mSelfVoiceBg = this.mSelfBg.transform.Find("voiceBg").gameObject; this.mSelfVoiceNoPlayTag = this.mSelfVoiceBg.transform.Find("noMark").gameObject; UIEventListener expr_541 = UIEventListener.Get(this.mSelfVoiceNoPlayTag); expr_541.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_541.onClick, new UIEventListener.VoidDelegate(this.OnSelfVoiceNoPlayTagClick)); this.mSelfVoicePlayedTag = this.mSelfVoiceBg.transform.Find("mark").gameObject; UIEventListener expr_58D = UIEventListener.Get(this.mSelfVoicePlayedTag); expr_58D.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_58D.onClick, new UIEventListener.VoidDelegate(this.OnSelfVoiceNoPlayTagClick)); this.mSelfVoiceTimeNum = this.mSelfVoiceBg.transform.Find("txt").GetComponent<UILabel>(); this.mSelfVoiceDesc = this.mSelfVoiceBg.transform.Find("desc").GetComponent<UILabel>(); this.mSelfVoiceDesc.spaceIsNewLine = false; UIEventListener expr_60A = UIEventListener.Get(this.mSelfVoiceDesc.gameObject); expr_60A.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_60A.onClick, new UIEventListener.VoidDelegate(this.OnSelfVoiceMsgClick)); this.mSelfVoiceYinLiang = this.mSelfVoiceBg.transform.Find("yinLiang").gameObject; UIEventListener expr_656 = UIEventListener.Get(this.mSelfVoiceYinLiang); expr_656.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_656.onClick, new UIEventListener.VoidDelegate(this.OnSelfVoiceYinLiangClick)); this.mSelfVoiceBg.SetActive(false); }
private void CreateObjects() { this.mTargetLineGo = base.transform.Find("targetLine").gameObject; Transform transform = this.mTargetLineGo.transform; this.mTargetVipGo = transform.Find("VIP").gameObject; Transform transform2 = this.mTargetVipGo.transform; this.mTargetVipNum0 = transform2.Find("Tens").GetComponent<UISprite>(); this.mTargetVipNum1 = transform2.Find("Single").GetComponent<UISprite>(); this.mTargetIcon = transform.Find("CharIcon").GetComponent<UISprite>(); UIEventListener expr_9B = UIEventListener.Get(this.mTargetIcon.gameObject); expr_9B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_9B.onClick, new UIEventListener.VoidDelegate(this.OnTargetIconClick)); this.mTargetSystem = transform.Find("System").GetComponent<UISprite>(); this.mTargetSystem.spriteName = "pet_0019a"; this.mTargetQuality = transform.Find("Frame").GetComponent<UISprite>(); this.mTargetBg = transform.Find("bg").GetComponent<UISprite>(); this.mTargetName = this.mTargetBg.transform.Find("name").GetComponent<UILabel>(); this.mTargetTime = this.mTargetBg.transform.Find("time").GetComponent<UILabel>(); this.mTargetMsg = this.mTargetBg.transform.Find("desc").GetComponent<UILabel>(); this.mTargetMsg.spaceIsNewLine = false; UIEventListener expr_18A = UIEventListener.Get(this.mTargetMsg.gameObject); expr_18A.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_18A.onClick, new UIEventListener.VoidDelegate(this.OnTargetMsgClick)); this.mTargetEmotionSprite = this.mTargetBg.transform.Find("emotion").gameObject.AddComponent<GUIEmotionSprite>(); this.mTargetEmotionSprite.InitObjects(); this.mSelfLineGo = base.transform.Find("selfLine").gameObject; Transform transform3 = this.mSelfLineGo.transform; this.mSelfVipGo = transform3.Find("VIP").gameObject; Transform transform4 = this.mSelfVipGo.transform; this.mSelfVipNum0 = transform4.Find("Tens").GetComponent<UISprite>(); this.mSelfVipNum1 = transform4.Find("Single").GetComponent<UISprite>(); this.mSelfIcon = transform3.Find("CharIcon").GetComponent<UISprite>(); this.mSelfQuality = this.mSelfIcon.transform.Find("Frame").GetComponent<UISprite>(); this.mSelfBg = transform3.Find("bg").GetComponent<UISprite>(); this.mSelfName = this.mSelfBg.transform.Find("name").GetComponent<UILabel>(); this.mSelfTime = this.mSelfBg.transform.Find("time").GetComponent<UILabel>(); this.mSelfMsg = this.mSelfBg.transform.Find("desc").GetComponent<UILabel>(); this.mSelfMsg.spaceIsNewLine = false; UIEventListener expr_318 = UIEventListener.Get(this.mSelfMsg.gameObject); expr_318.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_318.onClick, new UIEventListener.VoidDelegate(this.OnSelfMsgClick)); this.mSelfEmotionSprite = this.mSelfBg.transform.Find("emotion").gameObject.AddComponent<GUIEmotionSprite>(); this.mSelfEmotionSprite.InitObjects(); }