protected virtual void drawDebug(Vector2 point1, Vector2 point2)
        {
            var color = State == GestureState.Possible ? Color.red : Color.green;

            GLDebug.DrawSquareScreenSpace(debugID + 1, point2, 0f, debugTouchSize, color, float.PositiveInfinity);
            GLDebug.DrawLineScreenSpace(debugID + 2, point1, point2, color, float.PositiveInfinity);
        }
Exemple #2
0
        protected virtual void drawDebug(Vector2 point1, Vector2 point2)
        {
            if (!DebugMode)
            {
                return;
            }

            var color = IsOpen == GestureState.Possible ? Color.red : Color.green;

            GLDebug.DrawSquareScreenSpace(debugID + 1, point2, 0f, debugPointerSize, color, float.PositiveInfinity);
            GLDebug.DrawLineScreenSpace(debugID + 2, point1, point2, color, float.PositiveInfinity);
        }