Skip to content

Commit 6a4dea0

Browse files
author
Jan Reinhardt
committed
Added license header and namespace, changed access modifier
1 parent 3b3e0b2 commit 6a4dea0

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed
Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
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+
24
using System.Collections;
3-
using HoloToolkit.Unity;
45
using 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+
}

0 commit comments

Comments
 (0)