diff --git a/GFramework.Core.Godot/architecture/AbstractArchitecture.cs b/GFramework.Core.Godot/architecture/AbstractArchitecture.cs index 0219ff7..4022811 100644 --- a/GFramework.Core.Godot/architecture/AbstractArchitecture.cs +++ b/GFramework.Core.Godot/architecture/AbstractArchitecture.cs @@ -40,12 +40,9 @@ public abstract class AbstractArchitecture : Architecture where T : Archit Name = ArchitectureName }; - anchor.Bind(() => - { - Destroy(); - }); + anchor.Bind(Destroy); - tree.Root.AddChild(anchor); + tree.Root.CallDeferred(Node.MethodName.AddChild, anchor); } ///