20 lines
412 B
C#
20 lines
412 B
C#
using System;
|
|
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
namespace GuruClient
|
|
{
|
|
public class GuruScrollRect : ScrollRect
|
|
{
|
|
public Action onBeginDrag;
|
|
public override void OnBeginDrag(PointerEventData eventData)
|
|
{
|
|
base.OnBeginDrag(eventData);
|
|
if (onBeginDrag != null)
|
|
{
|
|
onBeginDrag();
|
|
}
|
|
}
|
|
}
|
|
} |