Files
2026-02-21 16:45:37 +08:00

29 lines
515 B
C#

using UnityEngine;
namespace OVR
{
public class TestScript : MonoBehaviour
{
[InspectorNote("Sound Setup", "Press '1' to play testSound1 and '2' to play testSound2")]
public SoundFXRef testSound1;
public SoundFXRef testSound2;
private void Start()
{
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.Alpha1))
{
testSound1.PlaySoundAt(base.transform.position);
}
if (Input.GetKeyDown(KeyCode.Alpha2))
{
testSound2.PlaySoundAt(new Vector3(5f, 0f, 0f));
}
}
}
}