UNITY You Can Make A Beautiful 3D Game In 15 Minutes

Аватар автора
channel37379807
-- Voice Over Trigger Script-- *Be sure you name it VoiceOverTrigger.cs* 👇 using System.Collections; using System.Collections.Generic; using UnityEngine; public class VoiceOverTrigger : MonoBehaviour { public AudioSource audioSource; public AudioClip audioClip; private void OnTriggerEnter(Collider other) { if(other.gameObject.name == "FirstPersonController") { audioSource.Stop(); audioSource.clip = audioClip; audioSource.Play(); } } }

0/0


0/0

0/0

0/0