diff --git a/Assets/Scripts/Debug/SROptions.Chicken.cs b/Assets/Scripts/Debug/SROptions.Chicken.cs index fce4b427..181db136 100644 --- a/Assets/Scripts/Debug/SROptions.Chicken.cs +++ b/Assets/Scripts/Debug/SROptions.Chicken.cs @@ -11,5 +11,9 @@ using Random = UnityEngine.Random; public partial class SROptions { - + [Category("功能")] + public void 解锁全部关卡() + { + PlayerData.Instance.UnlockAllLevel(); + } } \ No newline at end of file diff --git a/Assets/Scripts/Storage/PlayerData.cs b/Assets/Scripts/Storage/PlayerData.cs index 098b2eb8..c5dd7975 100644 --- a/Assets/Scripts/Storage/PlayerData.cs +++ b/Assets/Scripts/Storage/PlayerData.cs @@ -47,6 +47,12 @@ public class PlayerData : StorageBase } } + public void UnlockAllLevel()//for debug + { + mUnlockedLevel = GameConfig.Instance.LevelSort.Count; + Save(); + } + public bool HasUnlockedAllLevel() { return mUnlockedLevel == GameConfig.Instance.LevelSort.Count; diff --git a/Assets/ThirdPlugins/StompyRobot/SRDebugger/usr/Resources/SRDebugger/Settings.asset b/Assets/ThirdPlugins/StompyRobot/SRDebugger/usr/Resources/SRDebugger/Settings.asset index 1cf70040..62feaa2a 100644 --- a/Assets/ThirdPlugins/StompyRobot/SRDebugger/usr/Resources/SRDebugger/Settings.asset +++ b/Assets/ThirdPlugins/StompyRobot/SRDebugger/usr/Resources/SRDebugger/Settings.asset @@ -12,7 +12,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 16d00b7005a47ef47802a8421dc6baf6, type: 3} m_Name: Settings m_EditorClassIdentifier: - _isEnabled: 0 + _isEnabled: 1 _defaultTab: 1 _triggerEnableMode: 0 _triggerBehaviour: 2 @@ -55,11 +55,11 @@ MonoBehaviour: _debugCameraDepth: 100 _apiKey: _enableBugReporter: 0 - _disabledTabs: + _disabledTabs: 000000000200000003000000 _profilerAlignment: 2 _optionsAlignment: 3 _consoleAlignment: 0 - _triggerPosition: 4 + _triggerPosition: 1 _maximumConsoleEntries: 1500 _enableEventSystemCreation: 1 _automaticShowCursor: 1