From 09121a6165a738a3cd6396bf2fc56624a3ba0fb9 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 二月 2026 15:16:49 +0800
Subject: [PATCH] 声音控制
---
Main/System/Sound/SoundPlayer.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Main/System/Sound/SoundPlayer.cs b/Main/System/Sound/SoundPlayer.cs
index d8c553f..25c8175 100644
--- a/Main/System/Sound/SoundPlayer.cs
+++ b/Main/System/Sound/SoundPlayer.cs
@@ -355,6 +355,13 @@
}
}
+ public void MuteSoundEffect(bool _mute)
+ {
+ m_NpcAudioSource.mute = _mute;
+ m_NewBieAudioSource.mute = _mute;
+ m_UIAudioSource.mute = _mute;
+ }
+
public void PlayLoginMusic()
{
var loginMusic = BuiltInLoader.LoadMusic("login");
--
Gitblit v1.8.0