Пример #1
0
        /// <summary>
        /// Automatically called when an Interactable is registered with this Interaction Manager.
        /// Notifies the Interactable, passing the given <paramref name="args"/>.
        /// </summary>
        /// <param name="args">Event data containing the registered Interactable.</param>
        /// <remarks>
        /// <paramref name="args"/> is only valid during this method call, do not hold a reference to it.
        /// </remarks>
        /// <seealso cref="RegisterInteractable"/>
        protected virtual void OnRegistered(InteractableRegisteredEventArgs args)
        {
            Debug.Assert(args.manager == this, this);

            args.interactable.OnRegistered(args);
            interactableRegistered?.Invoke(args);
        }
 void OnInteractableRegistered(InteractableRegisteredEventArgs args)
 {
     m_TriggerContactMonitor.ResolveUnassociatedColliders(args.interactable);
 }