GlobalProto.cs 373 B

123456789101112131415161718192021222324
  1. namespace ETModel
  2. {
  3. public class GlobalProto
  4. {
  5. public string AssetBundleServerUrl;
  6. public string Address;
  7. public string GetUrl()
  8. {
  9. string url = this.AssetBundleServerUrl;
  10. #if UNITY_ANDROID
  11. url += "Android/";
  12. #elif UNITY_IOS
  13. url += "IOS/";
  14. #elif UNITY_WEBGL
  15. url += "WebGL/";
  16. #else
  17. url += "PC/";
  18. #endif
  19. Log.Debug(url);
  20. return url;
  21. }
  22. }
  23. }