目录
(转到“利用 Wwise 专有属性设置 Switch”)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PostWwiseEvent : MonoBehaviour { public AK.Wwise.Event MyEvent; public void PlayFootstepSound(){ PlayerManager.foot_L.GetMaterial().SetValue(gameObject); MyEvent.Post(gameObject); } // 每帧调用 Update 函数一次。 void Update () { } }