A game about forced loneliness, made by TACStudios
1namespace Unity.VisualScripting 2{ 3 /// <summary> 4 /// Sets the value of a scene variable. 5 /// </summary> 6 [UnitSurtitle("Scene")] 7 public sealed class SetSceneVariable : SetVariableUnit, ISceneVariableUnit 8 { 9 public SetSceneVariable() : base() { } 10 11 public SetSceneVariable(string defaultName) : base(defaultName) { } 12 13 protected override VariableDeclarations GetDeclarations(Flow flow) 14 { 15 var scene = flow.stack.scene; 16 17 if (scene == null) return null; 18 19 return Variables.Scene(scene.Value); 20 } 21 } 22}