File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed
Assets/HoloToolkit-Tests/SpatialSound/Scripts Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ // Copyright (c) Microsoft Corporation. All rights reserved.
2+ // Licensed under the MIT License. See LICENSE in the project root for license information.
3+
24using System . Collections ;
3- using HoloToolkit . Unity ;
45using UnityEngine ;
56
6- public class UAudioManagerTest : MonoBehaviour
7+ namespace HoloToolkit . Unity . Tests
78{
8- void Start ( )
9- {
10- StartCoroutine ( ContinouslyPlaySounds ( ) ) ;
11- }
12-
13- private IEnumerator ContinouslyPlaySounds ( )
9+ public class UAudioManagerTest : MonoBehaviour
1410 {
15- while ( true )
11+ private void Start ( )
1612 {
17- UAudioManager . Instance . PlayEvent ( "Laser" ) ;
13+ StartCoroutine ( ContinouslyPlaySounds ( ) ) ;
14+ }
1815
19- yield return new WaitForSeconds ( 1.0f ) ;
16+ private IEnumerator ContinouslyPlaySounds ( )
17+ {
18+ while ( true )
19+ {
20+ UAudioManager . Instance . PlayEvent ( "Laser" ) ;
2021
21- UAudioManager . Instance . PlayEvent ( "Vocals" ) ;
22+ yield return new WaitForSeconds ( 1.0f ) ;
2223
23- yield return new WaitForSeconds ( 10.0f ) ;
24+ UAudioManager . Instance . PlayEvent ( "Vocals" ) ;
25+
26+ yield return new WaitForSeconds ( 10.0f ) ;
27+ }
2428 }
25- }
2629
27- }
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments