final commit?
This commit is contained in:
parent
0e2a7cc7c3
commit
3f53e2caa8
59 changed files with 3989 additions and 1668 deletions
|
|
@ -22,6 +22,8 @@ public class Player : Entity
|
|||
[SerializeField] private float hurtVolume = 1f;
|
||||
[SerializeField] private AudioClip gameOverSound;
|
||||
[SerializeField] private float gameOverVolume = 1f;
|
||||
[SerializeField] private AudioClip healSound;
|
||||
[SerializeField] private float healVolume = 1f;
|
||||
private void Update()
|
||||
{
|
||||
if (!isStalled)
|
||||
|
|
@ -62,6 +64,13 @@ public class Player : Entity
|
|||
}
|
||||
}
|
||||
|
||||
public override void Heal(int healing)
|
||||
{
|
||||
base.Heal(healing);
|
||||
UpdateLivesUI();
|
||||
WaveManager.instance.audioSource.PlayOneShot(healSound, healVolume);
|
||||
}
|
||||
|
||||
public override void TakeDamage(int damage)
|
||||
{
|
||||
base.TakeDamage(damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue