using UnityEngine; namespace Unity.VisualScripting { #if MODULE_PHYSICS_EXISTS [UnitCategory("Events/Physics")] public abstract class TriggerEventUnit : GameObjectEventUnit { /// /// The other collider involved in the collision. /// [DoNotSerialize] public ValueOutput collider { get; private set; } protected override void Definition() { base.Definition(); collider = ValueOutput(nameof(collider)); } protected override void AssignArguments(Flow flow, Collider other) { flow.SetValue(collider, other); } } #endif }