Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 23rd, 2019 for the holiday period, and will reopen on January 3rd, 2020 at 9:00 a.m. EST. Learn more.

Lesson 5

Table of Contents

Setting Game Parameters using Wwise-Types: SetTimeOfDayRTPC

(go to Setting Game Parameters using Wwise-Types)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
    
public class SetTimeOfDayRTPC : MonoBehaviour {
    public AK.Wwise.RTPC TimeOfDayRTPC;
    // Use this for initialization.
    void Start () {
    
    }
    
    // Update is called once per frame.
    void Update () {
        TimeOfDayRTPC.SetGlobalValue(GameManager.TimeOfDay);
    }
}