Пример #1
0
 private void Awake()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.DetailWindow, (UnityEngine.Object)null))
     {
         ((Component)this.DetailWindow).get_gameObject().SetActive(false);
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CharMessageWindow, (UnityEngine.Object)null))
     {
         this.CharMessageWindow.SetActive(false);
     }
     this.mCategories = ChallengeMission.GetOpeningCategory();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.CategoryButtonTemplate, (UnityEngine.Object)null))
     {
         return;
     }
     this.CategoryButtonTemplate.SetActive(false);
     for (int index = 0; index < this.mCategories.Length; ++index)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         ChallengeMission.\u003CAwake\u003Ec__AnonStorey30A awakeCAnonStorey30A = new ChallengeMission.\u003CAwake\u003Ec__AnonStorey30A();
         // ISSUE: reference to a compiler-generated field
         awakeCAnonStorey30A.\u003C\u003Ef__this = this;
         ChallengeCategoryParam         mCategory  = this.mCategories[index];
         GameObject                     gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.CategoryButtonTemplate);
         ChallengeMissionCategoryButton component  = (ChallengeMissionCategoryButton)gameObject.GetComponent <ChallengeMissionCategoryButton>();
         // ISSUE: reference to a compiler-generated field
         awakeCAnonStorey30A.index = index;
         // ISSUE: method pointer
         ((UnityEvent)component.Button.get_onClick()).AddListener(new UnityAction((object)awakeCAnonStorey30A, __methodptr(\u003C\u003Em__2A4)));
         component.SetChallengeCategory(mCategory);
         this.mCategoryButtons.Add(component);
         DataSource.Bind <ChallengeCategoryParam>(((Component)component).get_gameObject(), mCategory);
         gameObject.get_transform().SetParent(this.CategoryButtonContainer, false);
         gameObject.SetActive(true);
     }
 }
Пример #2
0
 public static TrophyParam GetTopMostPriorityTrophy()
 {
     return(ChallengeMission.GetTopMostPriorityTrophy(ChallengeMission.GetOpeningCategory()));
 }