void Awake()
    {
        uiMgr = UIMgr.instance;
        if (Managed)
        {
            uiMgr.AddUI(this);
        }

        Init();
        if (UiEventType != eUIEventType.Not && _UiOpenEvent == null)
        {
            _UiOpenEvent = GetComponent <UiOpenEvent>();
            if (_UiOpenEvent == null)
            {
                _UiOpenEvent = gameObject.AddComponent <UiOpenEvent>();
            }
        }
    }