第 4 课

目录

通过动画发送 Event:PostWwiseEvent

(转到“通过动画发送 Event”)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PostWwiseEvent : MonoBehaviour {
    public AK.Wwise.Event MyEvent;
    // 使用此函数进行初始化。
    public void PlayFootstepSound() {
        MyEvent.Post(gameObject);
    }
}


此页面对您是否有帮助?