示例#1
0
 public void PlaySound(eSoundId id)
 {
     //if (_soundSource.isPlaying)
     //	return;
     //_soundSource.clip = soundStorage.Get(id);
     //_soundSource.Play();
     AudioSource.PlayClipAtPoint(soundStorage.Get(id), Vector3.zero);
 }
示例#2
0
 public void PlaySound(ESfxId id)
 {
     if (id == ESfxId.Click && Time.timeScale == 0.0f)
     {
         Time.timeScale = 1.0f;
         AudioSource.PlayClipAtPoint(audioStorage.Get(id), Vector3.zero);
         Time.timeScale = 0.0f;
     }
     else
     {
         AudioSource.PlayClipAtPoint(audioStorage.Get(id), Vector3.zero);
     }
 }
示例#3
0
 public void PlaySound(SoundID ID)
 {
     AudioSource.PlayClipAtPoint(soundStorage.Get(ID), Vector3.zero);
 }