示例#1
0
 protected override void ReleaseSelf(bool calledDestroy)
 {
     if (SystemConfig.IsReleaseResourceOn)
     {
         EquipPartUI.Instance = null;
         base.ReleaseSelf(true);
     }
 }
示例#2
0
 private void Awake()
 {
     EquipPartUI.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
     this.BtnWeapon                     = base.FindTransform("BtnWeapon").GetComponent <ButtonCustom>();
     this.BtnWaistPendant               = base.FindTransform("BtnWaistPendant").GetComponent <ButtonCustom>();
     this.BtnNecklace                   = base.FindTransform("BtnNecklace").GetComponent <ButtonCustom>();
     this.BtnCloth                      = base.FindTransform("BtnCloth").GetComponent <ButtonCustom>();
     this.BtnTrousers                   = base.FindTransform("BtnTrousers").GetComponent <ButtonCustom>();
     this.BtnShoe                       = base.FindTransform("BtnShoe").GetComponent <ButtonCustom>();
     this.BtnWeapon.onClickCustom       = new ButtonCustom.VoidDelegateObj(this.OnClickBtnWeapon);
     this.BtnWaistPendant.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickBtnWaistPendant);
     this.BtnNecklace.onClickCustom     = new ButtonCustom.VoidDelegateObj(this.OnClickBtnNecklace);
     this.BtnCloth.onClickCustom        = new ButtonCustom.VoidDelegateObj(this.OnClickBtnCloth);
     this.BtnTrousers.onClickCustom     = new ButtonCustom.VoidDelegateObj(this.OnClickBtnTrousers);
     this.BtnShoe.onClickCustom         = new ButtonCustom.VoidDelegateObj(this.OnClickBtnShoe);
     this.BtnEquip                      = base.FindTransform("ButtonEquip").GetComponent <ButtonCustom>();
     this.BtnProperty                   = base.FindTransform("ButtonProperty").GetComponent <ButtonCustom>();
     this.BtnEquip.onClickCustom        = new ButtonCustom.VoidDelegateObj(this.OnClickChangeEquipOrPropertyUI);
     this.BtnProperty.onClickCustom     = new ButtonCustom.VoidDelegateObj(this.OnClickChangeEquipOrPropertyUI);
 }