void OnDestroy() { instance = null; GameEvents.onHideUI.Remove(onHideUI); GameEvents.onShowUI.Remove(onShowUI); }
public void Awake() { instance = this; GameEvents.onHideUI.Add(onHideUI); GameEvents.onShowUI.Add(onShowUI); }