예제 #1
0
 protected override void ReleaseSelf(bool calledDestroy)
 {
     if (SystemConfig.IsReleaseResourceOn)
     {
         VipTasteCardUI.Instance = null;
         base.ReleaseSelf(true);
     }
 }
예제 #2
0
 private void Awake()
 {
     VipTasteCardUI.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
     base.FindTransform("CloseBtn").get_gameObject().GetComponent <ButtonCustom>().onClickCustom    = new ButtonCustom.VoidDelegateObj(this.OnClose);
     base.FindTransform("GoBtn").get_gameObject().GetComponent <ButtonCustom>().onClickCustom       = new ButtonCustom.VoidDelegateObj(this.OnGo);
     base.FindTransform("ExpireGoBtn").get_gameObject().GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnExpireGo);
     this.TasteRegion      = base.FindTransform("VipTasteRegion").get_gameObject();
     this.ExpireRegion     = base.FindTransform("VipExpireRegion").get_gameObject();
     this.m_cardlist       = base.FindTransform("CardEffectList").GetComponent <GridLayoutGroup>();
     this.m_expirecardlist = base.FindTransform("ExpireCardEffectList").GetComponent <GridLayoutGroup>();
 }