목차
(음악 지역 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(); } } }