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); } }
public async Task Init() { string path = $"{GameConfig.Instance.RemoteSettingUrl}/{PlatformHelper.GetPlatformString()}/GameConfig.json"; await AsyncWebRequest.Load(path, InitRemoteConfig); }