Audio
This commit is contained in:
parent
8914d2486f
commit
83ffb3189b
13 changed files with 106 additions and 3 deletions
10
scripts/components/zombies/AudioDamage.cs
Normal file
10
scripts/components/zombies/AudioDamage.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class AudioDamage : AudioStreamPlayer2D
|
||||
{
|
||||
public void OnHPChanged(int amount)
|
||||
{
|
||||
Play();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue