Esempio n. 1
0
    public void NewDirectionReceived(char direction)
    {
        if (blockQueue.Count > 0)
        {
            TestGesture(direction);
        }
        else
        {
            uiController.UpdateSongListPosition(direction);

            if (direction == 'P')
            {
                if (uiController.currentMenu == MenuType.StartMenu)
                {
                    StartGame();
                    uiController.StartGame();
                    visualization.AnimateUI();
                }
                else if (uiController.currentMenu == MenuType.EndMenu)
                {
                    uiController.StartMenu();
                }
            }
        }
    }