Leçon 4

Table des matières

Posting Events from Animations: PostWwiseEvent

(go to Posting Events from Animations)

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

public class PostWwiseEvent : MonoBehaviour {
    public AK.Wwise.Event MyEvent;
    // Use this for initialization..
    public void PlayFootstepSound() {
        MyEvent.Post(gameObject);
    }
}