コード例 #1
0
 public void Initalize()
 {
     if (this.IsInitalized)
     {
         return;
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.TouchArea, (UnityEngine.Object)null))
     {
         TouchControlArea component = (TouchControlArea)this.TouchArea.GetComponent <TouchControlArea>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
         {
             this.mTouchControlArea = component;
         }
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.SkinButton, (UnityEngine.Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.SkinButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnSkinSelectClick)));
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.ReactionButton, (UnityEngine.Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.ReactionButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnRectionClick)));
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceButton, (UnityEngine.Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.VoiceButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnVoiceClick)));
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.VoiceUnlock, (UnityEngine.Object)null))
     {
         this.VoiceUnlock.SetActive(true);
     }
     this.IsInitalized = true;
     this.mJobIconScrollListController.Init();
     this.mJobIconScrollListController.CreateInstance();
 }
コード例 #2
0
 public void Initalize()
 {
     if (this.IsInitalized)
     {
         return;
     }
     if (Object.op_Inequality((Object)this.TouchArea, (Object)null))
     {
         TouchControlArea component = (TouchControlArea)this.TouchArea.GetComponent <TouchControlArea>();
         if (Object.op_Inequality((Object)component, (Object)null))
         {
             this.mTouchControlArea = component;
         }
     }
     if (Object.op_Inequality((Object)this.BackButton, (Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.BackButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnBack)));
     }
     if (Object.op_Inequality((Object)this.SkinButton, (Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.SkinButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnSkinSelectClick)));
     }
     if (Object.op_Inequality((Object)this.ReactionButton, (Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.ReactionButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnRectionClick)));
     }
     if (Object.op_Inequality((Object)this.VoiceButton, (Object)null))
     {
         // ISSUE: method pointer
         ((UnityEvent)this.VoiceButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnVoiceClick)));
     }
     if (Object.op_Inequality((Object)this.VoiceUnlock, (Object)null))
     {
         this.VoiceUnlock.SetActive(true);
     }
     if (Object.op_Inequality((Object)this.JobIconTemplate_Normal, (Object)null))
     {
         ((Component)this.JobIconTemplate_Normal).get_gameObject().SetActive(false);
     }
     if (Object.op_Inequality((Object)this.JobIconTemplate_CC, (Object)null))
     {
         ((Component)this.JobIconTemplate_CC).get_gameObject().SetActive(false);
     }
     for (int index = 0; index < 4; ++index)
     {
         AnimatedToggle animatedToggle1 = (AnimatedToggle)Object.Instantiate <AnimatedToggle>((M0)this.JobIconTemplate_Normal);
         ((Component)animatedToggle1).get_gameObject().SetActive(false);
         ((Component)animatedToggle1).get_transform().SetParent((Transform)this.JobIconParent, false);
         animatedToggle1.OnClick = new AnimatedToggle.ClickEvent(this.OnJobIconClick);
         this.mJobIcons.Add(animatedToggle1);
         AnimatedToggle animatedToggle2 = (AnimatedToggle)Object.Instantiate <AnimatedToggle>((M0)this.JobIconTemplate_CC);
         ((Component)animatedToggle2).get_gameObject().SetActive(false);
         ((Component)animatedToggle2).get_transform().SetParent((Transform)this.JobIconParent, false);
         animatedToggle2.OnClick = new AnimatedToggle.ClickEvent(this.OnJobIconClick);
         this.mCCIcons.Add(animatedToggle2);
     }
     this.IsInitalized = true;
 }