soundeffects

This commit is contained in:
orsolya-st
2026-06-06 22:55:25 +02:00
parent 4c09b342e5
commit 8849a17f8c
4 changed files with 308 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using UnityEngine;
using UnityEngine.SceneManagement;
public class StartScene : MonoBehaviour
{
public AudioSource mySpeaker;
public AudioClip jingle;
// Update is called once per frame
void Update()
{
if (Input.anyKey)
{
mySpeaker.PlayOneShot(jingle);
SceneManager.LoadScene(0, LoadSceneMode.Single);
}
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 95ce96b9c2b516844a78e1102b390f54