// Update is called once per frame
    public void Update()
    {
        // get new parsed input
        int newInputValue = ParseTrickInput(AnalogTrickInput());

        // update input buffer
        trickQueue.EnqueueDequeue(newInputValue);
    }
Example #2
0
    public void Update()
    {
        int newInputValue = 0;

        // checks if player just touched the screen
        if (playerTouchedScreen)
        {
            inputCentre = Input.mousePosition;
        }

        newInputValue = ParseTrickInput(AnalogTrickInput());
        trickQueue.EnqueueDequeue(newInputValue);
    }