using Sirenix.OdinInspector; using UnityEngine; namespace ET { public enum CodeMode { Client = 1, Server = 2, ClientServer = 3, } public enum FPS { Login = 30, Main = 30 } [CreateAssetMenu(menuName = "ET/CreateGlobalConfig", fileName = "GlobalConfig", order = 0)] public class GlobalConfig : ScriptableObject { //client/server是否独立运行 public CodeMode CodeMode = CodeMode.ClientServer; [InfoBox("EditorSimulateMode: Editor模式\n\n" + "OfflinePlayMode: 加载本地ab:Unity/Assets/StreamingAssets/\n\n" + "HostPlayMode: 通过http下载最新ab资源\n" + "下载地址为:\n$\"{host}/[android|ios|web|pc]/{version}\"")] [LabelText("AB资源模式")] public YooAsset.YooAssets.EPlayMode PlayMode = YooAsset.YooAssets.EPlayMode.HostPlayMode; [LabelText("AB版本{version}")] public string Version = "v0.0.1"; [LabelText("AB资源服下载服{host}")] public string HotfixResUrl = "https://star-escort.oss-cn-hangzhou.aliyuncs.com"; [LabelText("主程序版本号")] public string ExeVersion = "1.0"; } }