1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Fort23.Common;
- using Fort23.Mono;
- using Fort23.UTool;
- using UnityEditor;
- using UnityEngine;
- namespace Fort23.Editor
- {
- [CustomEditor(typeof(GameRuntimeConfig))]
- public class GameRuntimeConfigInspector : UnityEditor.Editor
- {
- public override void OnInspectorGUI()
- {
- // GameRuntimeConfig runtimeConfig = target as GameRuntimeConfig;
- // runtimeConfig.isUpdateAsset = EditorGUILayout.Toggle("是否开启更新资源", runtimeConfig.isUpdateAsset);
- // runtimeConfig.version = EditorGUILayout.IntField("当前大版本", runtimeConfig.version);
- // runtimeConfig.buildVer = EditorGUILayout.IntField("当前小版本", runtimeConfig.buildVer);
- // runtimeConfig.assetVer = EditorGUILayout.IntField("当前资源版本", runtimeConfig.assetVer);
- // runtimeConfig.serverVer = EditorGUILayout.IntField("当前服务器版本", runtimeConfig.serverVer);
- // // runtimeConfig.authen = EditorGUILayout.Toggle("是否开启防沉谜", runtimeConfig.authen);
- // runtimeConfig.unLockAll = EditorGUILayout.Toggle("是否解锁全部系统", runtimeConfig.unLockAll);
- //
- //
- // EditorGUILayout.Space(20);
- // EditorGUILayout.LabelField("引导相关");
- //
- // runtimeConfig.isSkip = EditorGUILayout.Toggle("是否跳过", runtimeConfig.isSkip);
- // runtimeConfig.isUnlockAll = EditorGUILayout.Toggle("是否全部解锁", runtimeConfig.isUnlockAll);
- // runtimeConfig.IsUseServerData = EditorGUILayout.Toggle("是否使用服务器引导数据", runtimeConfig.IsUseServerData);
- // runtimeConfig.isDebug = EditorGUILayout.Toggle("是否开启调试模式", runtimeConfig.isDebug);
- //
- //
- //
- // runtimeConfig.debugPhase = EditorGUILayout.Vector4Field("指定调试新手引导", runtimeConfig.debugPhase);
- //
- //
- // runtimeConfig.ClearGuideData = EditorGUILayout.Toggle("是否清除新手引导数据", runtimeConfig.ClearGuideData);
- //
- // runtimeConfig.isSaveCombat = EditorGUILayout.Toggle("开始战斗日志保存", runtimeConfig.isSaveCombat);
- // runtimeConfig.isAllLog = EditorGUILayout.Toggle("开始战斗日志记录", runtimeConfig.isAllLog);
-
- if (GUILayout.Button("清理本地储存"))
- {
- // PlayerPrefs.DeleteAll();
- // PlayerPrefs.Save();
- // LogTool.Log("清理本地储存成功.");
- AccountFileInfo.Instance.DeleteFile(AccountFileInfo.Instance.persistentDataPath);
- }
- // EditorUtility.SetDirty(runtimeConfig);
- }
- }
- }
|