Hello,
I know how to trigger a sound on an collision (On that empty gameobject).
using UnityEngine;
using System.Collections;
public class SoundTrigger : MonoBehaviour
{
public AudioClip Laughing;
void OnTriggerEnter(Collider other)
{
if(other.tag=="Weapon")
audio.PlayOneShot(Laughing);
}
}
But I want to know how to enter a certain collider but have the sound play elsewhere on another gameobject (in the distance), my notion is to guide the player. Sound being the item to guide them.
Thanks!
I've seen this problem solved by a Unity developer. It was an InputManager configuration problem. Therefore, only the game's developer can fix it, not end-users. So, the best thing to do, as an end-user, would be to contact the developer through a support e-mail or something.
– pako