From cca7237473568c98afee322b15c89697adce9a00 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 21 十一月 2025 19:09:40 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/SystemSetting/SystemSetting.cs |   35 ++++++++++++++++-------------------
 1 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/Main/System/SystemSetting/SystemSetting.cs b/Main/System/SystemSetting/SystemSetting.cs
index 190cb51..077b8d4 100644
--- a/Main/System/SystemSetting/SystemSetting.cs
+++ b/Main/System/SystemSetting/SystemSetting.cs
@@ -3,7 +3,6 @@
 using UnityEngine;
 using UnityEngine.Events;
 using System;
-using vnxbqy.UI;
 using System.Collections;
 using Cysharp.Threading.Tasks;
 
@@ -27,14 +26,12 @@
 
     public SystemSetting()
     {
-        // TODO YYL
-        // DTC0102_tagCDBPlayer.switchAccountEvent += OnSwitchAccount;
+        DTC0102_tagCDBPlayer.switchAccountEvent += OnSwitchAccount;
     }
 
     ~SystemSetting()
     {
-        // TODO YYL
-        // DTC0102_tagCDBPlayer.switchAccountEvent -= OnSwitchAccount;
+        DTC0102_tagCDBPlayer.switchAccountEvent -= OnSwitchAccount;
     }
 
     public void SetSoundVolume(float _volume)
@@ -45,7 +42,7 @@
 
     public float GetSoundVolume()
     {
-        return LocalSave.GetFloat(SOUND_VOLUME_KEY, .55f);
+        return LocalSave.GetFloat(SOUND_VOLUME_KEY, 1.0f);
     }
 
     public void SetSoundEffect(float value)
@@ -55,7 +52,7 @@
 
     public float GetSoundEffect()
     {
-        return LocalSave.GetFloat(SOUND_EFFECT_KEY, .8f);
+        return LocalSave.GetFloat(SOUND_EFFECT_KEY, 1.0f);
     }
 
     public void SetGameFps(GameFps _frame)
@@ -165,18 +162,18 @@
                 break;
         }
 
-#if UNITY_ANDROID && !UNITY_EDITOR
-        if (_disabeCamera)
-        {
-            CameraManager.uiCamera.enabled = false;
-        }
+// #if !UNITY_EDITOR
+//         if (_disabeCamera)
+//         {
+//             CameraManager.uiCamera.enabled = false;
+//         }
 
-        ResolutionUtility.AdjustResolution(_quality);
-        if (_disabeCamera)
-        {
-            Co_WaitFewMinute();
-        }
-#endif
+//         ResolutionUtility.AdjustResolution(_quality);
+//         if (_disabeCamera)
+//         {
+//             Co_WaitFewMinute();
+//         }
+// #endif
 
         if (qualityLevelChangeEvent != null)
         {
@@ -221,7 +218,7 @@
 
     public void LetFPSUnLimit()
     {
-        Application.targetFrameRate = 1000;
+        // Application.targetFrameRate = 1000;
     }
 
     private void OnSwitchAccount()

--
Gitblit v1.8.0