fix: make sure volume is set to 0 when entering server mode
This commit is contained in:
parent
34d9e9261e
commit
60706fb255
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,8 @@ public class GBSUServer : MonoBehaviour
|
|||
//_gmInit = AccessTools.Method(typeof(GameMode), "Init");
|
||||
localSingleGang = Traverse.Create(nameof(GameMode)).Field("localSingleGang");
|
||||
gameTimer = Traverse.Create(nameof(GameMode)).Field("timer");
|
||||
|
||||
AudioListener.volume = 0; // mute game audio
|
||||
}
|
||||
void SetLocalGangToOff()
|
||||
{
|
||||
|
|
@ -37,7 +39,6 @@ public class GBSUServer : MonoBehaviour
|
|||
if (!Helper.hosting)
|
||||
{
|
||||
Helper.hosting = true;
|
||||
AudioListener.volume = 0; // mute game audio
|
||||
|
||||
Plugin.AddServerComp(); // add custom GBSU server component
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue