namespace VRTK.Prefabs.Interactions.Interactables { using UnityEngine; using Zinnia.Data.Operation.Extraction; /// /// Extracts the of the . /// public class InteractableConsumerRigidbodyExtractor : GameObjectExtractor { /// /// Extracts the of the . /// /// The Interactable to extract from. /// The related . public virtual GameObject Extract(InteractableFacade interactable) { if (interactable == null) { Result = null; return null; } Result = interactable.ConsumerRigidbody != null ? interactable.ConsumerRigidbody.gameObject : null; return base.Extract(); } /// /// Extracts the of the . /// /// The Interactable to extract from. public virtual void DoExtract(InteractableFacade interactable) { Extract(interactable); } } }