Added path to spawner

This commit is contained in:
Marco 2025-06-03 11:41:50 +02:00
commit cee0a8fe8f
2 changed files with 4 additions and 1 deletions

View file

@ -585,10 +585,11 @@ script = ExtResource("35_im0gw")
Enemy = ExtResource("36_6jwww")
AutoSpawn = true
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors"]
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors" node_paths=PackedStringArray("Path")]
position = Vector2(100, 537)
script = ExtResource("35_im0gw")
Enemy = ExtResource("36_6jwww")
Path = NodePath("")
[node name="RogueliteEnemySpawner14" type="Marker2D" parent="Tilemaps/Actors"]
position = Vector2(92.6661, 332.966)

View file

@ -47,6 +47,8 @@ public partial class RogueliteEnemySpawner : Marker2D, IActivable
public bool Spawned { get; private set; } = false;
[Export] public Path2D Path { get; private set; }
[ExportToolButton("Update Icon")] public Callable RedrawButton => Callable.From(Redraw);
private EnemyFSMProxy _spawnedEnemy;