示例#1
0
    public static void PlayOrderSound()
    {
        OrderSound soundSource = GameObject.FindObjectOfType <OrderSound>();

        soundSource.GetComponent <AudioSource>().volume = soundEffectVolume * 0.1f;
        soundSource.GetComponent <AudioSource>().Play();
    }
示例#2
0
 private void OnSoundCompleate(int obj)
 {
     speaches = SoundManager.GetSound(obj);
     SoundManager.OnCompleate2(obj);
 }