A game about forced loneliness, made by TACStudios
1using UnityEngine; 2 3namespace Unity.VisualScripting 4{ 5#if MODULE_PHYSICS_EXISTS 6 [UnitCategory("Events/Physics")] 7 public abstract class TriggerEventUnit : GameObjectEventUnit<Collider> 8 { 9 /// <summary> 10 /// The other collider involved in the collision. 11 /// </summary> 12 [DoNotSerialize] 13 public ValueOutput collider { get; private set; } 14 15 protected override void Definition() 16 { 17 base.Definition(); 18 19 collider = ValueOutput<Collider>(nameof(collider)); 20 } 21 22 protected override void AssignArguments(Flow flow, Collider other) 23 { 24 flow.SetValue(collider, other); 25 } 26 } 27#endif 28}