A game about forced loneliness, made by TACStudios
1namespace Unity.VisualScripting 2{ 3 /// <summary> 4 /// Stops the execution of the current loop. 5 /// </summary> 6 [UnitTitle("Break Loop")] 7 [UnitCategory("Control")] 8 [UnitOrder(13)] 9 public class Break : Unit 10 { 11 /// <summary> 12 /// The entry point for the break. 13 /// </summary> 14 [DoNotSerialize] 15 [PortLabelHidden] 16 public ControlInput enter { get; private set; } 17 18 protected override void Definition() 19 { 20 enter = ControlInput(nameof(enter), Operation); 21 } 22 23 public ControlOutput Operation(Flow flow) 24 { 25 flow.BreakLoop(); 26 27 return null; 28 } 29 } 30}