Exemple #1
0
 public override void OnDisable()
 {
     base.OnDisable();
     _instance = null;
     Hotfix_LT.Messenger.RemoveListener(EventName.OnEventsDataUpdate, EventsDataUpdateFunc);
 }
Exemple #2
0
 public override void OnEnable()
 {
     base.OnEnable();
     _instance = this;
     Hotfix_LT.Messenger.AddListener(EventName.OnEventsDataUpdate, EventsDataUpdateFunc);
 }