Changed events to generic node

This commit is contained in:
Marco 2025-06-23 18:30:42 +02:00
commit 7b2d32e727
17 changed files with 166 additions and 135 deletions

View file

@ -8,22 +8,20 @@ public partial class ControlActorEvent : EventResource
[Export]
public NodePath Target { get; set; }
private Node2D _parent;
private Node _parent;
private GameManager _gameManager;
private bool _isComplete = false;
public override bool IsComplete()
{
return _isComplete;
}
public override void Init(Node2D parent)
public override void Init(Node parent)
{
_gameManager = parent.GetGameManager();
_parent = parent;
}
public override void Start(Node2D parentNode)
public override void Start(Node parentNode)
{
_isComplete = false;