예제 #1
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;
        }
    }