解锁全部关卡作弊工具
This commit is contained in:
parent
0750fd1325
commit
96794d4853
|
|
@ -11,5 +11,9 @@ using Random = UnityEngine.Random;
|
||||||
|
|
||||||
public partial class SROptions
|
public partial class SROptions
|
||||||
{
|
{
|
||||||
|
[Category("功能")]
|
||||||
|
public void 解锁全部关卡()
|
||||||
|
{
|
||||||
|
PlayerData.Instance.UnlockAllLevel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -47,6 +47,12 @@ public class PlayerData : StorageBase<PlayerData>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void UnlockAllLevel()//for debug
|
||||||
|
{
|
||||||
|
mUnlockedLevel = GameConfig.Instance.LevelSort.Count;
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
public bool HasUnlockedAllLevel()
|
public bool HasUnlockedAllLevel()
|
||||||
{
|
{
|
||||||
return mUnlockedLevel == GameConfig.Instance.LevelSort.Count;
|
return mUnlockedLevel == GameConfig.Instance.LevelSort.Count;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 16d00b7005a47ef47802a8421dc6baf6, type: 3}
|
m_Script: {fileID: 11500000, guid: 16d00b7005a47ef47802a8421dc6baf6, type: 3}
|
||||||
m_Name: Settings
|
m_Name: Settings
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
_isEnabled: 0
|
_isEnabled: 1
|
||||||
_defaultTab: 1
|
_defaultTab: 1
|
||||||
_triggerEnableMode: 0
|
_triggerEnableMode: 0
|
||||||
_triggerBehaviour: 2
|
_triggerBehaviour: 2
|
||||||
|
|
@ -55,11 +55,11 @@ MonoBehaviour:
|
||||||
_debugCameraDepth: 100
|
_debugCameraDepth: 100
|
||||||
_apiKey:
|
_apiKey:
|
||||||
_enableBugReporter: 0
|
_enableBugReporter: 0
|
||||||
_disabledTabs:
|
_disabledTabs: 000000000200000003000000
|
||||||
_profilerAlignment: 2
|
_profilerAlignment: 2
|
||||||
_optionsAlignment: 3
|
_optionsAlignment: 3
|
||||||
_consoleAlignment: 0
|
_consoleAlignment: 0
|
||||||
_triggerPosition: 4
|
_triggerPosition: 1
|
||||||
_maximumConsoleEntries: 1500
|
_maximumConsoleEntries: 1500
|
||||||
_enableEventSystemCreation: 1
|
_enableEventSystemCreation: 1
|
||||||
_automaticShowCursor: 1
|
_automaticShowCursor: 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue