23 lines
403 B
C#
23 lines
403 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
#if FMOD_AVAILABLE
|
||
|
using FMOD;
|
||
|
using FMODUnity;
|
||
|
#endif
|
||
|
|
||
|
public class OnStirringSound : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField]
|
||
|
EventReference stirringDrySoundRef;
|
||
|
|
||
|
[SerializeField]
|
||
|
StudioEventEmitter emitter;
|
||
|
|
||
|
void Start()
|
||
|
{
|
||
|
emitter.Stop();
|
||
|
emitter.ChangeEvent(stirringDrySoundRef);
|
||
|
}
|
||
|
}
|