public static IEnumerator LoadBinHeader(string filename, PatchDataLoadedCallback <GridData> callback) { #if UNITY_WEBGL callback(ParseBinHeader(PatchDataIO.brHeaders)); yield break; #else yield return(FileRequest.GetBinary(filename, (br) => callback(ParseBinHeader(br)))); #endif }
public static IEnumerator LoadBin(this GridData grid, string filename, PatchDataLoadedCallback <GridData> callback) { yield return(FileRequest.GetBinary(filename, (br) => callback(ParseBin(br, grid)))); }
public static IEnumerator LoadBin(this PointData pointData, string filename, PatchDataLoadedCallback <PointData> callback) { yield return(FileRequest.GetBinary(filename, (br) => callback(ParseBin(br, filename, pointData)))); }