Exemplo n.º 1
0
    public void SetCanvas(UIBase ui, EUICanvas eType, bool isAutoReset = true)
    {
        UIManagerCanvas canvas = null;

        if (m_canvasDic.TryGetValue(eType, out canvas))
        {
            canvas.SetUI(ui.transform, isAutoReset);
        }
    }
Exemplo n.º 2
0
    protected void RegisterUI(UIBase uiBase, EUICanvas eType, bool isAutoReset)
    {
        UIManagerCanvas canvas = null;

        if (m_canvasDic.TryGetValue(eType, out canvas))
        {
            canvas.SetUI(uiBase.transform, isAutoReset);
            if (uiBase != null)
            {
                if (uiBase.useBack)
                {
                    uiBase.SetOverrideSorting(true);
                }
                uiBase.order = canvas.canvas.sortingOrder;
                uiBase.gameObject.SetActive(false);
            }
        }
    }