Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.mAbilityPicker, (UnityEngine.Object)null))
     {
         UnityEngine.Object.Destroy((UnityEngine.Object)((Component)this.mAbilityPicker).get_gameObject());
     }
     this.mAbilityPicker = (UnitAbilityPicker)null;
 }
Exemplo n.º 2
0
 private void Start()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.Prefab_AbilityPicker, (UnityEngine.Object)null))
     {
         this.mAbilityPicker = (UnitAbilityPicker)UnityEngine.Object.Instantiate <UnitAbilityPicker>((M0)this.Prefab_AbilityPicker);
         this.mAbilityPicker.OnAbilitySelect = new UnitAbilityPicker.AbilityPickerEvent(this.OnSlotAbilitySelect);
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.unitAbilityList, (UnityEngine.Object)null))
     {
         this.unitAbilityList.OnSlotSelect = new UnitAbilityList.AbilitySlotEvent(this.OnAbilitySlotSelect);
         this.mCurrentUnit = this.unitAbilityList.Unit;
     }
     this.SetButtonEnabled();
     this.SetAbilityExplanationText();
 }