namespace Zinnia.Data.Operation.Extraction { using System; using UnityEngine; using UnityEngine.Events; /// /// Extracts and emits the of the collision from . /// public class RaycastHitRigidbodyExtractor : ValueExtractor { /// /// Defines the event with the specified . /// [Serializable] public class UnityEvent : UnityEvent { } /// protected override Rigidbody ExtractValue() { return Source.rigidbody; } /// protected override bool InvokeResult(Rigidbody data) { return InvokeEvent(data); } } }