think i finally solved movement going into enemy territory
This commit is contained in:
@@ -28,7 +28,7 @@ public partial class ThrustSpear : PegAction
|
||||
subtween.TweenProperty(_image, "global_position", target.GlobalPosition, 0.5f);
|
||||
subtween.TweenCallback(Callable.From(() =>
|
||||
{
|
||||
((Peg)target._occupant).ChangeHealth(-1);
|
||||
((Peg)target?._occupant)?.ChangeHealth(-1);
|
||||
_image.Position = Vector2.Zero;
|
||||
_image.Visible = false;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user