| | |
| | | /// </summary> |
| | | public static int GetCacheSizeLimitMB() |
| | | { |
| | | var platform = PlatformFactory.GetCurrent(); |
| | | switch (platform.GetPlatformType()) |
| | | { |
| | | case PlatformType.WeChat: |
| | | return 200; // 微信小游戏用户数据上限约 200MB |
| | | case PlatformType.Douyin: |
| | | return 200; // 抖音小游戏类似限制 |
| | | case PlatformType.Vivo: |
| | | return 100; // Vivo 限制较小 |
| | | default: |
| | | return 1024; // Standalone 无严格限制 |
| | | } |
| | | return 1024; |
| | | // var platform = PlatformFactory.GetCurrent(); |
| | | // switch (platform.GetPlatformType()) |
| | | // { |
| | | // case PlatformType.WeChat: |
| | | // return 200; // 微信小游戏用户数据上限约 200MB |
| | | // case PlatformType.Douyin: |
| | | // return 200; // 抖音小游戏类似限制 |
| | | // case PlatformType.Vivo: |
| | | // return 100; // Vivo 限制较小 |
| | | // default: |
| | | // return 1024; // Standalone 无严格限制 |
| | | // } |
| | | } |
| | | |
| | | /// <summary> |