Files
DropToTheRoots/Game/Assets/Scripts/StartScene.cs
T
2026-06-06 22:55:25 +02:00

19 lines
382 B
C#

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);
}
}
}