fixed inventory + using Sync bindings
This commit is contained in:
@@ -12,6 +12,7 @@ public class ExplodingSwordBehavior(PackedScene explosion, float radius) : IAbil
|
||||
{
|
||||
if (context.Owner is not Node3D owner)
|
||||
{
|
||||
GD.Print("Owner isn't a Node3D");
|
||||
context.InstanceHandle.End();
|
||||
return;
|
||||
}
|
||||
@@ -30,7 +31,6 @@ public class ExplodingSwordBehavior(PackedScene explosion, float radius) : IAbil
|
||||
}
|
||||
explo.Radius = radius;
|
||||
|
||||
GD.Print("explosion");
|
||||
owner.GetTree().GetRoot().CallDeferred(Node.MethodName.AddChild, explo);
|
||||
explo.CallDeferred(Node3D.MethodName.SetGlobalPosition, owner.GlobalPosition);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user