コード例 #1
0
    void Update()
    {
        if (mainMenuActive)
        {
            // handle the top level game menu for options/quit etc
        }
        else
        {
            switch (currentInputState)
            {
            case InputState.playerMenu:
                break;

            case InputState.exploringArea:
                explorationController.HandlePlayerInput();
                break;

            default:
                break;
            }
        }
    }