A game about forced loneliness, made by TACStudios
1using UnityEngine;
2
3namespace Unity.VisualScripting
4{
5#if MODULE_PHYSICS_2D_EXISTS
6 [UnitCategory("Events/Physics 2D")]
7 public abstract class TriggerEvent2DUnit : GameObjectEventUnit<Collider2D>
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<Collider2D>(nameof(collider));
20 }
21
22 protected override void AssignArguments(Flow flow, Collider2D other)
23 {
24 flow.SetValue(collider, other);
25 }
26 }
27#endif
28}