レッスン 8

目次

MusicリージョンのStateを設定する: SetMusicState

(参照: MusicリージョンのStateを設定する

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

public class SetMusicState : MonoBehaviour {
    public AK.Wwise.State OnTriggerEnterState;
    public AK.Wwise.State OnTriggerExitState;
    private void OnTriggerEnter(Collider other){
        if(other.CompareTag("Player")){
            OnTriggerEnterState.SetValue();
        }
    }
    private void OnTriggerExit(Collider other){
        if(other.CompareTag("Player")){
            OnTriggerExitState.SetValue();
        }
    }
}

このページはお役に立ちましたか?