mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 08:45:54 +00:00
Changed events to generic node
This commit is contained in:
parent
b89043cd8c
commit
7b2d32e727
17 changed files with 166 additions and 135 deletions
|
|
@ -10,7 +10,7 @@ public partial class ActivateEvent : EventResource
|
|||
|
||||
[Export] public Array<NodePath> Targets;
|
||||
|
||||
private Node2D _parent;
|
||||
private Node _parent;
|
||||
|
||||
private bool _isComplete = false;
|
||||
|
||||
|
|
@ -37,12 +37,12 @@ public partial class ActivateEvent : EventResource
|
|||
return true;
|
||||
}
|
||||
|
||||
public override void Init(Node2D parent)
|
||||
public override void Init(Node parent)
|
||||
{
|
||||
_parent = parent;
|
||||
}
|
||||
|
||||
public override void Start(Node2D parent)
|
||||
public override void Start(Node parent)
|
||||
{
|
||||
|
||||
ActivateTargets();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue