14 lines
355 B
C#
14 lines
355 B
C#
using UnityEngine;
|
|
|
|
public class VoiceoverTester : MonoBehaviour
|
|
{
|
|
//[Tooltip("Audio Table key")]
|
|
public string dialogueKey = "Chef/Ulrich_Terribly_Sorry1";
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
AudioManager.Instance.PlayDialogue(dialogueKey, gameObject, 0f);
|
|
//Debug.LogError("Voiceline played (in 3D)");
|
|
}
|
|
}
|