private void OnDestroy() { if (mRegionTick != null) { mRegionTick.Unregister(); } mRegionTick = null; }
private void Awake() { mRegionTick = XEvent.Register(I18NEventConst.OnUseRegion, OnSetRegion, FrameworkConst.FrameworkEventGroupName); RefreshTextValue(); }