示例#1
0
    void Awake()
    {
        m_instance = this;
        UIEventManager.Instance.RegisterUIEvent(UIEventType.SelectRole, SelectRole);

        BackButton.SetCallBackFuntion(OnBackButtonClick);
    }
示例#2
0
 void OnDestroy()
 {
     UIEventManager.Instance.RemoveUIEventHandel(UIEventType.SelectRole, SelectRole);
     m_instance = null;
 }