A game about forced loneliness, made by TACStudios
1using System.Collections; 2 3namespace Unity.VisualScripting 4{ 5 [UnitCategory("Time")] 6 public abstract class WaitUnit : Unit 7 { 8 /// <summary> 9 /// The moment at which to start the delay. 10 /// </summary> 11 [DoNotSerialize] 12 [PortLabelHidden] 13 public ControlInput enter { get; private set; } 14 15 /// <summary> 16 /// The action to execute after the delay has elapsed. 17 /// </summary> 18 [DoNotSerialize] 19 [PortLabelHidden] 20 public ControlOutput exit { get; private set; } 21 22 protected override void Definition() 23 { 24 enter = ControlInputCoroutine(nameof(enter), Await); 25 exit = ControlOutput(nameof(exit)); 26 Succession(enter, exit); 27 } 28 29 protected abstract IEnumerator Await(Flow flow); 30 } 31}