chore: clean up

This commit is contained in:
2025-05-17 15:16:30 +02:00
parent 0e70858ce9
commit b48e17882c
17 changed files with 147 additions and 30 deletions

View File

@ -105,11 +105,10 @@ public class Player : MonoBehaviour
if (collision.gameObject.CompareTag("Kill"))
{
Time.timeScale = 0;
sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "death"));
sfxSource.Play();
StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, SceneManager.GetActiveScene().name));
}
if (collision.gameObject.CompareTag("Win"))