Release Candidate v0.1
This commit is contained in:
@@ -5,7 +5,9 @@ public partial class PyramidAttack : Node3D
|
||||
[Export]
|
||||
private AnimationPlayer _animationPlayer;
|
||||
|
||||
public override void _Ready()
|
||||
private bool isDeleted = false;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
_animationPlayer.AnimationFinished += Delete;
|
||||
}
|
||||
@@ -20,10 +22,13 @@ public partial class PyramidAttack : Node3D
|
||||
}
|
||||
|
||||
QueueFree();
|
||||
isDeleted = true;
|
||||
}
|
||||
|
||||
public void Delete(StringName name)
|
||||
{
|
||||
QueueFree();
|
||||
if (!isDeleted)
|
||||
QueueFree();
|
||||
isDeleted = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user