GlobalProto.cs 420 B

1234567891011121314151617181920212223242526
  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. #elif UNITY_STANDALONE_OSX
  17. url += "MacOS/";
  18. #else
  19. url += "PC/";
  20. #endif
  21. Log.Debug(url);
  22. return url;
  23. }
  24. }
  25. }