astar angefangen
This commit is contained in:
@@ -8,7 +8,6 @@ namespace Slimepire.Gameplay;
|
||||
[SceneTree]
|
||||
public partial class BuildGhost : Node2D
|
||||
{
|
||||
public event Action<Vector2>? OnBuild;
|
||||
private Tube? _tube;
|
||||
private readonly Dictionary<Nodule, Tube> _connectedTubes = [];
|
||||
|
||||
@@ -77,7 +76,6 @@ public partial class BuildGhost : Node2D
|
||||
if (@event is InputEventMouseButton { Pressed: false, ButtonIndex: MouseButton.Left })
|
||||
{
|
||||
NoduleManager.Instance.Building = false;
|
||||
OnBuild?.Invoke(GlobalPosition);
|
||||
|
||||
var nodule = Instantiator.Instantiate<Nodule>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user