protected override void ReleaseSelf(bool calledDestroy) { if (SystemConfig.IsReleaseResourceOn) { GiftExchangeUI.Instance = null; base.ReleaseSelf(true); } }
private void Awake() { GiftExchangeUI.Instance = this; base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false); this.inputNumber = base.FindTransform("Input").GetComponent <InputField>(); base.FindTransform("BtnConfirm").GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickOk); base.FindTransform("CloseBtn").GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickBtnClose); }