UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"After Audio1 end, Start Audio2 and loop immediately."
using UnityEngine; public class AudioController : MonoBehaviour { public AudioSource audioSource1; public AudioSource audioSource2; void Start() { audioSource1.Play(); } void Update() { if (!audioSource1.isPlaying && !audioSource2.isPlaying) { audioSource2.loop = true; audioSource2.Play(); } } }