예제 #1
0
    /// <summary>
    /// ici play l'emitter (ou le stop)
    /// </summary>
    /// <param name="emitterScript"></param>
    public void PlaySound(WwiseEventEmitter emitterScript, bool stop = false)
    {
        if (!emitterScript)
        {
            Debug.LogWarning("Emmiter SOund not found !!");
            return;
        }

        if (!soundOn)
        {
            return;
        }

        if (!stop)
        {
            emitterScript.Play();
        }
        else
        {
            emitterScript.Stop();
        }
    }