示例#1
0
    public void HideScreen <T>() where T : GUIScreen
    {
        GUIScreen foundScreen = FoundScreen <T>();

        if (foundScreen != null)
        {
            foundScreen.Hide();
        }
    }
示例#2
0
        public void HideScreen <T>() where T : GUIScreen
        {
            GUIScreen foundScreen = FoundScreen <T>();

            if (foundScreen != null)
            {
                foundScreen.Hide();
                SortByLayer();
            }
            else
            {
                Debug.LogWarning("Screen " + typeof(T) + " not found!");
            }
        }
示例#3
0
    public void PopScreen()
    {
        if (screenStack.Count == 0)
        {
            return;
        }

        GUIScreen curScreen = screenStack.Pop();

        curScreen.Hide();

        if (screenStack.Count > 0)
        {
            GUIScreen newScreen = screenStack.Peek();
            newScreen.Show();
        }
    }