Exemplo n.º 1
0
    private void ReadGestures()
    {
        string        action     = "";
        List <string> allActions = controller.GetGestures(classifier);
        List <string> actions    = Game.UpdateActionBuffer(allActions);

        if (actions.Count == 1)
        {
            action = actions[0];
        }

        switch (action)
        {
        case "YES":
            LoadGame();
            break;

        case "NO":
            BackToMainMenu();
            break;

        case "NOTHING":
        default:
            break;
        }
    }
Exemplo n.º 2
0
    void CheckGestureActions()
    {
        List <string> allActions = controller.GetGestures(classifier);
        List <string> actions    = Game.UpdateActionBuffer(allActions);

        hudScript.AddActionsToGUI(allActions);

        switch (state)
        {
        case GameState.Game:
            CheckMove(allActions);
            CheckPauseDrinkGrab(actions);
            break;

        case GameState.Pause:
            CheckPauseActions(actions);
            break;

        case GameState.EndGame:
            CheckEndGameActions(actions);
            break;

        default:
            break;
        }
    }
Exemplo n.º 3
0
    private void NumberGestures()
    {
        string        action     = "";
        List <string> allActions = controller.GetGestures(classifier);
        List <string> actions    = Game.UpdateActionBuffer(allActions);

        if (actions.Count == 1)
        {
            action = actions[0];
        }

        switch (action)
        {
        case "NUMBER_1":
            ChangeNumOfColors(1);
            break;

        case "NUMBER_2":
            ChangeNumOfColors(2);
            break;

        case "NUMBER_3":
            ChangeNumOfColors(3);
            break;

        case "NOTHING":
        default:
            break;
        }
    }