A game about forced loneliness, made by TACStudios
1using System;
2using UnityEngine.EventSystems;
3
4namespace Unity.VisualScripting
5{
6 /// <summary>
7 /// Called when a move event occurs.
8 /// </summary>
9 [UnitCategory("Events/GUI")]
10 [UnitOrder(21)]
11 public sealed class OnMove : GameObjectEventUnit<AxisEventData>
12 {
13 public override Type MessageListenerType => typeof(UnityOnMoveMessageListener);
14 protected override string hookName => EventHooks.OnMove;
15
16 /// <summary>
17 /// The axis event data.
18 /// </summary>
19 [DoNotSerialize]
20 [PortLabelHidden]
21 public ValueOutput data { get; private set; }
22
23 protected override void Definition()
24 {
25 base.Definition();
26
27 data = ValueOutput<AxisEventData>(nameof(data));
28 }
29
30 protected override void AssignArguments(Flow flow, AxisEventData data)
31 {
32 flow.SetValue(this.data, data);
33 }
34 }
35}