We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c20d2 commit 69d73c5Copy full SHA for 69d73c5
ScriptSystem/Script.cs
@@ -63,7 +63,7 @@ public required ScriptExecutor Executor
63
64
65
private readonly HashSet<Variable> _variables = [];
66
- public ReadOnlyCollection<Variable> Variables => new(_variables.ToList());
+ public ReadOnlyCollection<Variable> Variables => _variables.ToList().AsReadOnly();
67
68
private CoroutineHandle _scriptCoroutine;
69
private bool? _isEventAllowed;
0 commit comments