sound (start)

This commit is contained in:
orsolya-st
2026-06-07 00:37:28 +02:00
parent 95e381c2c7
commit 549cf62ac6
2 changed files with 46 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ public class StartScene : MonoBehaviour
mySpeaker.PlayOneShot(jingle);
// 2. Wait for the length of the sound clip (or a fixed time)
yield return new WaitForSeconds(jingle.length - 0.5f);
yield return new WaitForSeconds(0.4f);
// 3. Now it is safe to load the scene
SceneManager.LoadScene(0, LoadSceneMode.Single);