Beispiel #1
0
 private void Start()
 {
     if (singleton == this && music != null)
     {
         music.Play();
     }
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown("space"))
     {
         testSFX.Play();
     }
     if (Input.GetKeyDown("s"))
     {
         testSFX.Stop();
     }
 }