Esempio n. 1
0
    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
    }
Esempio n. 2
0
 public static IEnumerator LoadBin(this GridData grid, string filename, PatchDataLoadedCallback <GridData> callback)
 {
     yield return(FileRequest.GetBinary(filename, (br) => callback(ParseBin(br, grid))));
 }
Esempio n. 3
0
 public static IEnumerator LoadBin(this PointData pointData, string filename, PatchDataLoadedCallback <PointData> callback)
 {
     yield return(FileRequest.GetBinary(filename, (br) => callback(ParseBin(br, filename, pointData))));
 }