Interactable Chest Collision

This commit is contained in:
Marco 2025-01-29 14:54:01 +01:00
commit 686dea6c8d
8 changed files with 95 additions and 22 deletions

View file

@ -26,7 +26,7 @@ public static class Tools
public static T CreateSibling<T>(this Node2D node, PackedScene prefab) where T : Node2D
{
return CreateSibling<T>(node, prefab, node.GlobalPosition);
return CreateChildOf<T>(node, node.GetParent<Node2D>(), prefab, node.GlobalPosition);
}
public static T CreateSibling<T>(this Node2D node, PackedScene prefab, Vector2 position) where T : Node2D