diff --git a/Assets/Scripts/FixSystemNew/BodyModule/BodyModuleSystem.cs b/Assets/Scripts/FixSystemNew/BodyModule/BodyModuleSystem.cs index fd3347145..bccbac2d6 100644 --- a/Assets/Scripts/FixSystemNew/BodyModule/BodyModuleSystem.cs +++ b/Assets/Scripts/FixSystemNew/BodyModule/BodyModuleSystem.cs @@ -52,7 +52,7 @@ namespace AibisDream.FixSystem private void InitComponentRefs() { // 注册数据 - // StorageSystem.Instance.RegisterData(_data); + StorageSystem.Instance.RegisterData(_data); // 处理内部索引 _bodyModuleGroup = transform.Find("Body Module Group")?.gameObject; diff --git a/Assets/Scripts/FixSystemNew/BodyModule/Plug.cs b/Assets/Scripts/FixSystemNew/BodyModule/Plug.cs index 76c85c751..e9cce832a 100644 --- a/Assets/Scripts/FixSystemNew/BodyModule/Plug.cs +++ b/Assets/Scripts/FixSystemNew/BodyModule/Plug.cs @@ -49,7 +49,7 @@ namespace AibisDream.FixSystem _trigger = GetComponent(); // 处理插头高亮 - // _sprite.material.SetFloat(ShineFade, GlobalVariableKit.IsPlugHighLight ? 1 : 0); + _sprite.material.SetFloat(ShineFade, GlobalVariableKit.IsPlugHighLight ? 1 : 0); } private void EventRegister() @@ -97,7 +97,7 @@ namespace AibisDream.FixSystem _cableSystem.CableRef.SetEndPos(_plugRootPos); _cableSystem.curSocket?.PlugOut(); - // AudioManager.Instance.PlaySfx("event:/FollowInput/plugout"); + AudioManager.Instance.PlaySfx("event:/FollowInput/plugout"); _sprite.enabled = true; if (_cableSystem.curSocket is BodyModule) diff --git a/Assets/Scripts/FixSystemNew/Clinic/ClinicSystem.cs b/Assets/Scripts/FixSystemNew/Clinic/ClinicSystem.cs index c473bd3c6..9d9760faa 100644 --- a/Assets/Scripts/FixSystemNew/Clinic/ClinicSystem.cs +++ b/Assets/Scripts/FixSystemNew/Clinic/ClinicSystem.cs @@ -19,7 +19,7 @@ namespace AibisDream private void Awake() { FixSystemCenter.SystemDic.Register(this); - // StorageSystem.Instance.RegisterData(_clinicData); + StorageSystem.Instance.RegisterData(_clinicData); character = transform.GetComponentInChildren(); character.CharacterChangeEvent += OnCharacterChange; diff --git a/Assets/Scripts/FixSystemNew/FixSystemCenter.cs b/Assets/Scripts/FixSystemNew/FixSystemCenter.cs index 9909665ea..169381970 100644 --- a/Assets/Scripts/FixSystemNew/FixSystemCenter.cs +++ b/Assets/Scripts/FixSystemNew/FixSystemCenter.cs @@ -19,7 +19,7 @@ namespace AibisDream.FixSystem StartCoroutine(StateMachine.SwitchState(FixState.Clinic)); // 注册 - // StorageSystem.Instance.RegisterData(_data); + StorageSystem.Instance.RegisterData(_data); } public override void OnSingletonDestroy() diff --git a/Assets/Scripts/FixSystemNew/Screen System/ScreenSystem.cs b/Assets/Scripts/FixSystemNew/Screen System/ScreenSystem.cs index cf2e4f4b3..5daeb3393 100644 --- a/Assets/Scripts/FixSystemNew/Screen System/ScreenSystem.cs +++ b/Assets/Scripts/FixSystemNew/Screen System/ScreenSystem.cs @@ -63,7 +63,7 @@ namespace AibisDream.FixSystem private void Register() { FixSystemCenter.SystemDic.Register(this); - // DialogCanvasManager.Instance.RegisterDialogView(DialogViewType.Screen, this); + DialogCanvasManager.Instance.RegisterDialogView(DialogViewType.Screen, this); } private void OnDestroy() diff --git a/Assets/Scripts/Framework/OtherKit/MonoCenter.cs b/Assets/Scripts/Framework/OtherKit/MonoCenter.cs index f8b37966e..c4d817ffb 100644 --- a/Assets/Scripts/Framework/OtherKit/MonoCenter.cs +++ b/Assets/Scripts/Framework/OtherKit/MonoCenter.cs @@ -50,18 +50,6 @@ namespace AibisDream.Framework { public void OnUpdate() { - if (Input.GetKeyDown(KeyCode.K)) - { - MonoCenter.Mono.StartCoroutine(FixSystemCenter.StateMachine.SwitchState(FixState.BodyModule, "Head")); - } - - if (Input.GetKeyDown(KeyCode.Q)) - { - var bodyModuleSystem = FixSystemCenter.SystemDic.Get(); - var module = bodyModuleSystem.FindBodyModuleByName("Memory"); - Debug.Log(module.name); - module.EnableCut(); - } } } diff --git a/Assets/Scripts/Utility/GlobalVariableKit.cs b/Assets/Scripts/Utility/GlobalVariableKit.cs index 0c380be69..0c83ca7a0 100644 --- a/Assets/Scripts/Utility/GlobalVariableKit.cs +++ b/Assets/Scripts/Utility/GlobalVariableKit.cs @@ -1,24 +1,17 @@ -using UnityEngine; - -namespace AibisDream.Utility +namespace AibisDream.Utility { public static class GlobalVariableKit { public static bool IsPlugHighLight { - // get => !(StorageSystem.Instance.TryGetValue("$global.IsPlugHighLight", out bool res) && res); - // set => StorageSystem.Instance.SetValue("$global.IsPlugHighLight", !value); - get => false; - set => Debug.Log(value); + get => !(StorageSystem.Instance.TryGetValue("$global.IsPlugHighLight", out bool res) && res); + set => StorageSystem.Instance.SetValue("$global.IsPlugHighLight", !value); } public static bool IsCordHighLight { - // get => !(StorageSystem.Instance.TryGetValue("$global.IsCurdHighLight", out bool res) && res); - // set => StorageSystem.Instance.SetValue("$global.IsCurdHighLight", !value); - - get => false; - set => Debug.Log(value); + get => !(StorageSystem.Instance.TryGetValue("$global.IsCurdHighLight", out bool res) && res); + set => StorageSystem.Instance.SetValue("$global.IsCurdHighLight", !value); } } } \ No newline at end of file