void Awake() { m_instance = this; UIEventManager.Instance.RegisterUIEvent(UIEventType.SelectRole, SelectRole); BackButton.SetCallBackFuntion(OnBackButtonClick); }
void OnDestroy() { UIEventManager.Instance.RemoveUIEventHandel(UIEventType.SelectRole, SelectRole); m_instance = null; }