Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Add ObservableDragTrigger and ObservablePointerDownTrigger automatically #541

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
[RequireComponent(typeof(ObservableDragTrigger))]
public class ObservableBeginDragTrigger : ObservableTriggerBase, IEventSystemHandler, IBeginDragHandler
{
Subject<PointerEventData> onBeginDrag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
[RequireComponent(typeof(ObservableDragTrigger))]
public class ObservableEndDragTrigger : ObservableTriggerBase, IEventSystemHandler, IEndDragHandler
{
Subject<PointerEventData> onEndDrag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
[RequireComponent(typeof(ObservablePointerDownTrigger))]
public class ObservablePointerUpTrigger : ObservableTriggerBase, IEventSystemHandler, IPointerUpHandler
{
Subject<PointerEventData> onPointerUp;
Expand Down