第 5 课

目录

利用 Wwise 专有属性设置 Game Parameter:SetTimeOfDayRTPC

(转到“利用 Wwise 专有属性设置 Game Parameter”)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
    
public class SetTimeOfDayRTPC : MonoBehaviour {
    public AK.Wwise.RTPC TimeOfDayRTPC;
    // 使用此函数进行初始化。
    void Start () {
    
    }
    
    // 每帧调用 Update 函数一次。
    void Update () {
        TimeOfDayRTPC.SetGlobalValue(GameManager.TimeOfDay);
    }
}

此页面对您是否有帮助?