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 a Switch using a Wwise-Type: PostWwiseEvent

(go to Setting a Switch using a Wwise-Type)

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 is called once per frame.
    void Update () {
        
    }
}