第 4 课

目录

指派和发送 Wwise 专有 Event:PostWwiseEvent

(转到“指派和发送 Wwise 专有 Event”)

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

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

     // 每帧调用 Update 函数一次。
    void Update () {

    }
}


此页面对您是否有帮助?