soundeffects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 95ce96b9c2b516844a78e1102b390f54
|
||||
Reference in New Issue
Block a user