GlobalConfig.cs 994 B

1234567891011121314151617181920212223242526272829303132
  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. [CreateAssetMenu(menuName = "ET/CreateGlobalConfig", fileName = "GlobalConfig", order = 0)]
  12. public class GlobalConfig: ScriptableObject
  13. {
  14. public CodeMode CodeMode;
  15. [InfoBox("EditorSimulateMode: Editor模式\n\n" +
  16. "OfflinePlayMode: 加载本地ab:Unity/Assets/StreamingAssets/\n\n" +
  17. "HostPlayMode: 通过http下载最新ab资源\n" +
  18. "下载地址为:\n$\"{host}/[android|ios|web|pc]/{version}\"")]
  19. [LabelText("AB资源模式")]
  20. public YooAsset.YooAssets.EPlayMode PlayMode = YooAsset.YooAssets.EPlayMode.EditorSimulateMode;
  21. [LabelText("AB版本{version}")]
  22. public string Version = "v0.0.1";
  23. [LabelText("AB资源服下载服{host}")]
  24. public string HotfixResUrl = "https://star-escort.oss-cn-hangzhou.aliyuncs.com";
  25. }
  26. }