Files
berry-dash-custom/Assets/Scripts/IgnoreRaycast.cs
T
2025-08-27 19:25:56 -07:00

6 lines
238 B
C#

using UnityEngine;
public class IgnoreRaycast : MonoBehaviour, ICanvasRaycastFilter
{
public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) => GetComponent<DraggableUI>() != null && GetComponent<DraggableUI>().canDrag;
}