예제 #1
0
 public void RpcPlaySound(Assets.Scripts.SoundController.PlayMode Mode, SoundEffects SoundEffect)
 {
     if (isLocalPlayer)
     {
         if (SoundManager != null)
         {
             SoundManager.ProcessSoundEffect(Mode, SoundEffect);
         }
     }
 }
예제 #2
0
    public void ProcessSoundEffect(Assets.Scripts.SoundController.PlayMode Mode, SoundEffects SoundEffect)
    {
        AudioClip clip = SoundEffectManager.GetClip(SoundEffect);

        if (clip != null)
        {
            SoundControllerInstance instance = new SoundControllerInstance(Mode, clip);
            ProcessSoundEffect(instance);
        }
    }