Update stuff

This commit is contained in:
2023-09-10 12:18:02 -07:00
parent f67963b129
commit f0f02bbd17
117 changed files with 11343 additions and 13133 deletions

View File

@@ -11,7 +11,6 @@ public partial class EnemyBullet : Projectile
public new void OnProjectileHit(Node node)
{
SetPhysicsProcess(false);
_hitBox.QueueFree();
if (node is Character character && character.HasMethod(Character.MethodName.OnHit))
{
@@ -19,9 +18,6 @@ public partial class EnemyBullet : Projectile
character.Call(Character.MethodName.OnHit, node);
}
var sfxPlayer = GetTree().Root.GetNode<AudioStreamPlayer>("Main/SFXPlayer");
if (!sfxPlayer.Playing)
sfxPlayer.Play();
QueueFree();
}
}