示例#1
0
 private void Awake()
 {
     OffHookUI.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
     this.btnEnsure = base.FindTransform("BtnEnsure").GetComponent <ButtonCustom>();
     this.btnEnsure.set_enabled(true);
     this.btnEnsure.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickBtnEnsure);
     this.textResultTitle         = base.FindTransform("TextResultTitle").GetComponent <Text>();
     this.textBtnEnsureName       = base.FindTransform("TextBtnEnsureName").GetComponent <Text>();
     this.textResultEexplain      = base.FindTransform("TextResultEexplain").GetComponent <Text>();
     this.textResultEexplainInfo  = base.FindTransform("TextResultEexplainInfo").GetComponent <Text>();
     this.textOffTimeStr          = base.FindTransform("TextOffTimeStr").GetComponent <Text>();
     this.textLeftTimeStr         = base.FindTransform("TextLeftTimeStr").GetComponent <Text>();
     this.textGetExpStr           = base.FindTransform("TextGetExpStr").GetComponent <Text>();
     this.textLvUpStr             = base.FindTransform("TextLvUpStr").GetComponent <Text>();
     this.textOffTimeValue        = base.FindTransform("TextOffTimeValue").GetComponent <Text>();
     this.textLeftTimeValue       = base.FindTransform("TextLeftTimeValue").GetComponent <Text>();
     this.textGetExpValue         = base.FindTransform("TextGetExpValue").GetComponent <Text>();
     this.textLvUpValue1          = base.FindTransform("TextLvUpValue1").GetComponent <Text>();
     this.textLvUpValue2          = base.FindTransform("TextLvUpValue2").GetComponent <Text>();
     this.textEffectContent       = base.FindTransform("EffectContent").GetComponent <Text>();
     base.FindTransform("CloseBtn").GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickBtnEnsure);
     this.InitRegionInfo();
     this.StrMove();
 }
示例#2
0
 protected override void ReleaseSelf(bool calledDestroy)
 {
     if (SystemConfig.IsReleaseResourceOn)
     {
         OffHookUI.Instance = null;
         base.ReleaseSelf(true);
     }
 }