You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
622 B
22 lines
622 B
|
1 month ago
|
using System;
|
||
|
|
|
||
|
|
namespace UDE_HAND_INTERACTION
|
||
|
|
{
|
||
|
|
public abstract class DetectorInteractable<interactor, interactable> : Interactable<interactor, interactable>,
|
||
|
|
IDetectable
|
||
|
|
where interactor : Interactor<interactor, interactable>
|
||
|
|
where interactable : DetectorInteractable<interactor, interactable>
|
||
|
|
{
|
||
|
|
|
||
|
|
public IDetectableElement DetectableElement { get; protected set; }
|
||
|
|
|
||
|
|
public event Action<DetectorEvent> WhenDetectorEventRaised = delegate { };
|
||
|
|
|
||
|
|
public void PublishDetectorEvent(DetectorEvent evt)
|
||
|
|
{
|
||
|
|
WhenDetectorEventRaised(evt);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|