示例#1
0
    public void ActivateScreen(BasicUIScreen screen)
    {
        if (currentScreen != null)
            currentScreen.gameObject.SetActive(false);

        screen.gameObject.SetActive(true);
        try
        {
            screen.FillText();
        }
        catch (System.NotImplementedException e)
        {
            Debug.Log(e.Message);
        }
        currentScreen = screen;
    }
示例#2
0
    public void ActivateScreenOverlayed(BasicUIScreen screen)
    {
        if (overlayScreen.Find(x => x == screen))
            return;

        screen.gameObject.SetActive(true);
        try
        {
            screen.FillText();
        }
        catch (System.NotImplementedException e)
        {
            Debug.Log(e.Message);
        }
        overlayScreen.Add(screen);
    }