Example #1
0
    protected void flickHandlerDirection(Vector2 direction)
    {
        if (direction.x > 0 || direction.y > 0)
        {
            //	Debug.Log("Flick horizontal derecha");

            ActionMovement(direction);
            action = ActionShowInput.Right;
        }
        else if (direction.x < 0 || direction.y < 0)
        {
            //	Debug.Log("Flick horizontal izquierda");

            ActionMovement(direction);
            action = ActionShowInput.Left;
        }
    }
Example #2
0
    protected void tappedHandlerDirection()
    {
        ActionMovement(Vector2.zero);

        action = ActionShowInput.Pause;
    }