Exemplo n.º 1
0
        public async Task Start()
        {
            string path = $"{Application.persistentDataPath}/{ResourceName}";

            if (Directory.Exists(path))
            {
                await AsyncWebRequest.Load(path, HandleLoadLocalResourceMainfest);
            }
            else
            {
                TextAsset resourceAsset = Resources.Load <TextAsset>(Path.GetFileNameWithoutExtension(ResourceName));
                GeneratAssetManifest(resourceAsset.bytes);
            }
        }
Exemplo n.º 2
0
 public async Task Init()
 {
     string path = $"{GameConfig.Instance.RemoteSettingUrl}/{PlatformHelper.GetPlatformString()}/GameConfig.json";
     await AsyncWebRequest.Load(path, InitRemoteConfig);
 }