audio for game over + succing little blobs

This commit is contained in:
cemt1363
2026-06-07 05:35:19 +02:00
parent cd31a32900
commit 0f93d9ab93
15 changed files with 2181 additions and 3 deletions
+5 -2
View File
@@ -23,8 +23,10 @@ public class DamageHandler : MonoBehaviour
public AudioSource speaker;
public AudioClip fallsound;
public AudioClip splashSound;
private void Awake()
private void Awake()
{
rb = GetComponent<Rigidbody2D>();
animator = GetComponent<Animator>();
@@ -101,7 +103,8 @@ public class DamageHandler : MonoBehaviour
if (other.CompareTag("Minidrop"))
{
UpdateHealth(health + 0.2f);
Destroy(other.gameObject);
AudioSource.PlayClipAtPoint(splashSound, Camera.main.transform.position);
Destroy(other.gameObject);
return;
}
}