mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 05:25:54 +00:00
Interactable Chest Collision
This commit is contained in:
parent
b645e1724e
commit
686dea6c8d
8 changed files with 95 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue