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