Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UniRx;
- using UnityEngine;
- using UnityEngine.EventSystems;
- using UnityEngine.UI;
- namespace AnimalSimulator.PaintMode.UI.ColorPanel
- {
- [RequireComponent(typeof(Image))]
- public class DragHandler : MonoBehaviour, IDragHandler
- {
- public readonly Subject<PointerEventData> OnDrag = new Subject<PointerEventData>();
- void IDragHandler.OnDrag(PointerEventData eventData) =>
- OnDrag.OnNext(eventData);
- }
- }
Add Comment
Please, Sign In to add comment