Esempio n. 1
0
    public void ChangeGameState(EGameState _state)
    {
        if (GameState == _state)
        {
            return;
        }

        GameState = _state;

        switch (GameState)
        {
        case EGameState.GS_Game:
            MenuRoot.SetActive(false);
            GameRoot.SetActive(true);
            break;

        case EGameState.GS_Menu:
            GameRoot.SetActive(false);
            MenuRoot.SetActive(true);
            break;
        }
    }