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