Esempio n. 1
0
    void InitWindow(CUILoadState uiState, CUIController uiBase, bool open, params object[] args)
    {
        uiBase.OnInit();
        if (OnInitEvent != null)
        {
            OnInitEvent(uiBase);
        }
        if (open)
        {
            OnOpen(uiState, args);
            uiBase.gameObject.SetActive(true);
        }
        else
        {
            if (!uiState.IsStaticUI)
            {
                CloseWindow(uiBase.UIName); // Destroy
            }
            else
            {
                uiBase.gameObject.SetActive(false);
            }
        }

        OnUIWindowLoadedCallbacks(uiState, uiBase);
    }
Esempio n. 2
0
    void InitWindow(CUILoadState uiState, CUIController uiBase, bool open, params object[] args)
    {
        uiBase.OnInit();

        if (open)
        {
            OnOpen(uiState, args);
            uiBase.gameObject.SetActive(true);
        }
    }