Example #1
0
    void OnMultiDrag(Vector2 MultiDragDelta)
    {
        // Get the direction vector from the FirePoint to the center of the multi-touch gesture
        Vector2 center = Camera.main.ScreenToWorldPoint(LeanTouch.GetCenterOfFingers());

        currentDirection = (center - (Vector2)firePoint.position).normalized;

        // Use the direction to rotate the indicator
        SetRotationIndicator(currentDirection);
    }