Surprisingly, more moves

This commit is contained in:
2025-04-17 17:51:42 +02:00
parent d02c05874b
commit c22ad1a793
17 changed files with 298 additions and 43 deletions

View File

@@ -62,13 +62,15 @@ public class ScriptContainer : IReadOnlyScriptContainer
/// <summary>
/// Removes the script from this container.
/// </summary>
public void Clear()
public Script? Clear()
{
if (Script is not null)
{
Script.OnRemove();
}
var script = Script;
Script = null;
return script;
}
public void ClearWithoutRemoving()