private void OnPlaySFX(ISignalParameters parameters)
        {
            ESfx sfx = (ESfx)parameters.GetParameter(GameParams.AUDIO_ID);

            this.source.clip = this.audioMap[sfx];
            this.source.Play();
        }
Exemple #2
0
    public AudioClip GetAudioClip(ESfx Key)
    {
        // if(gameClips.ContainsKey(Key))
        return(gameClips[Key]);

        /* //else
         * {
         *   Debug.LogWarning("Not Key for "+Key.ToString());
         *   return null;
         * }*/
    }