GlobalConfig.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Sirenix.OdinInspector;
  2. using UnityEngine;
  3. namespace ET
  4. {
  5. public enum CodeMode
  6. {
  7. Client = 1,
  8. Server = 2,
  9. ClientServer = 3,
  10. }
  11. public enum FPS
  12. {
  13. Login = 30,
  14. Main = 30
  15. }
  16. [CreateAssetMenu(menuName = "ET/CreateGlobalConfig", fileName = "GlobalConfig", order = 0)]
  17. public class GlobalConfig : ScriptableObject
  18. {
  19. //client/server是否独立运行
  20. public CodeMode CodeMode = CodeMode.ClientServer;
  21. [InfoBox("EditorSimulateMode: Editor模式\n\n" +
  22. "OfflinePlayMode: 加载本地ab:Unity/Assets/StreamingAssets/\n\n" +
  23. "HostPlayMode: 通过http下载最新ab资源\n" +
  24. "下载地址为:\n$\"{host}/[android|ios|web|pc]/{version}\"")]
  25. [LabelText("AB资源模式")]
  26. public YooAsset.YooAssets.EPlayMode PlayMode = YooAsset.YooAssets.EPlayMode.HostPlayMode;
  27. [LabelText("AB版本{version}")]
  28. public string Version = "v0.0.1";
  29. [LabelText("AB资源服下载服{host}")]
  30. public string HotfixResUrl = "https://star-escort.oss-cn-hangzhou.aliyuncs.com";
  31. [LabelText("主程序版本号")]
  32. public string ExeVersion = "1.0";
  33. }
  34. }