moved hitbox immunity clear
This commit is contained in:
parent
a982f0603d
commit
7d95a97181
1 changed files with 1 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ public sealed partial class Hitbox : Area2D
|
||||||
public void StartAttack()
|
public void StartAttack()
|
||||||
{
|
{
|
||||||
if (Engine.IsEditorHint()) Visible = true;
|
if (Engine.IsEditorHint()) Visible = true;
|
||||||
|
_immunityEntries.Clear();
|
||||||
_checkingForHits = true;
|
_checkingForHits = true;
|
||||||
SetPhysicsProcess(true);
|
SetPhysicsProcess(true);
|
||||||
}
|
}
|
||||||
|
|
@ -74,7 +75,6 @@ public sealed partial class Hitbox : Area2D
|
||||||
{
|
{
|
||||||
if (Engine.IsEditorHint()) Visible = false;
|
if (Engine.IsEditorHint()) Visible = false;
|
||||||
_checkingForHits = false;
|
_checkingForHits = false;
|
||||||
_immunityEntries.Clear();
|
|
||||||
SetPhysicsProcess(false);
|
SetPhysicsProcess(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue