소스 검색

语音音量

guodong 1 년 전
부모
커밋
c03f73d0a3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      GameClient/Assets/Game/HotUpdate/Sound/VoiceManager.cs

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Sound/VoiceManager.cs

@@ -43,6 +43,9 @@ namespace GFGGame
         private void Awake()
         {
             player = this.gameObject.AddComponent<AudioSource>();
+            player.priority = 256;
+            //设置这个声音会大一些
+            player.spatialBlend = 1f;
             isOn = LocalCache.GetBool(LauncherConfig.SOUND_KEY, true);
         }