Spellcard test map

This commit is contained in:
Marco 2025-03-24 10:26:13 +01:00
commit dc8777c3d9
9 changed files with 163 additions and 43 deletions

View file

@ -10,11 +10,11 @@ public partial class ActorSpawner : Node2D, IActivable
[Export] public bool WaitForActorDeath { get; private set; } = true;
public Actor SpawnedActor { get; private set; }
public Node2D SpawnedActor { get; private set; }
public virtual void Spawn()
{
SpawnedActor = this.CreateSibling<Actor>(ActorPrefab);
SpawnedActor = this.CreateSibling<Node2D>(ActorPrefab);
}
public bool Activate(ActivationType activationType = ActivationType.Toggle)