Table des matières
-
Lessons
(go to Setting a Music Region State)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SetMusicState : MonoBehaviour { public AK.Wwise.State OnTriggerEnterState; public AK.Wwise.State OnTriggerExitState; private void OnTriggerEnter(Collider other){ if(other.CompareTag("Player")){ OnTriggerEnterState.SetValue(); } } private void OnTriggerExit(Collider other){ if(other.CompareTag("Player")){ OnTriggerExitState.SetValue(); } } }