I was Serializing a list into a *.dat file. and getting “ExecutionEngineException: Attempting to JIT compile method ‘List`1__TypeMetadata:.ctor ()’ while running with --aot-only.” It’s working fine in android. But not working on iOS. My code is given below:
using UnityEngine;
using System.Collections;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Collections.Generic;
public class MapFileCheck : MonoBehaviour {
public Texture2D[] mapPreview;
public TextMesh loading;
public GameObject[] menuButtons;
// Use this for initialization
void Start () {
foreach(GameObject go in menuButtons){
go.SetActive(false);
}
Screen.sleepTimeout = SleepTimeout.NeverSleep;
loading.text = "";
//maps = {{"as you go","Aqib","-2.701489*4.885828*-2*2#-2.212243*4.566638*-2*3#-1.722997*4.247447*-2*4#-1.191208*3.928257*-2*2#-0.5956038*3.609067*-2*3#-0.08508623*3.289877*-2*4#0.5956038*3.609067*-2*3#1.08485*3.928257*-2*2#1.63791*4.247447*-2*4#2.148428*4.566638*-2*3#2.637674*4.885827*-2*2#-0.6168754*4.928386*-2*5#0.5743323*4.928386*-2*5#0*4.609196*-2*5#-2.467502*2.502541*-2*2#-1.276294*2.502541*-2*2#-0.08508627*2.502541*-2*2#1.106121*2.502541*-2*2#2.297329*2.502541*-2*2#-0.6806902*2.183351*-2*3#0.5317891*2.183351*-2*3#-0.08508626*1.864161*-2*3#-2.467502*1.204501*-2*4#-1.276294*1.204501*-2*4#-0.08508626*1.204501*-2*4#1.106122*1.204501*-2*4#2.297329*1.204501*-2*4#-2.467502*0.8853108*-2*2#-1.276294*0.8853109*-2*2#-0.08508627*0.8853108*-2*2#1.106121*0.8853108*-2*2#2.297329*0.8853109*-2*2#-2.467502*0.5661207*-2*4#-1.276294*0.5661207*-2*4#-0.08508626*0.5661207*-2*4#1.106121*0.5661207*-2*4#2.297329*0.5661207*-2*4#2.339873*2.183351*-2*1#2.339872*1.864161*-2*1#1.148665*1.864161*-2*1#-2.467502*2.183351*-2*1#-2.467502*1.864161*-2*1#-1.276294*1.864161*-2*1#2.318601*1.544971*-2*1#1.127393*1.544971*-2*1#-0.08508626*1.54497*-2*1#-1.297566*1.523691*-2*1#-2.488773*1.544971*-2*1"},{"Simetric Spark","Aqib","-2.318601*0.4810033*-2*2#-1.127393*0.4810033*-2*2#0.06381468*0.4810033*-2*2#1.255022*0.4810033*-2*2#2.44623*0.4810033*-2*2#-1.659182*0.8001935*-2*3#-0.4679745*0.8001935*-2*3#0.7232332*0.8001934*-2*3#1.914441*0.8001935*-2*3#-2.297329*1.119384*-2*4#-1.106121*1.119384*-2*4#0.08508626*1.119384*-2*4#1.276294*1.119384*-2*4#2.467502*1.119384*-2*4#-1.616639*1.438574*-2*3#-0.4041598*1.438574*-2*3#0.787048*1.438574*-2*3#1.978256*1.438574*-2*3#-2.233515*1.757764*-2*2#-1.042307*1.757764*-2*2#0.148901*1.757764*-2*2#1.340109*1.757764*-2*2#2.531316*1.757764*-2*2#-2.318601*0.1618132*-2*1#-1.127393*0.1618132*-2*1#0.0638147*0.1618131*-2*1#1.255022*0.1618131*-2*1#2.44623*0.1618132*-2*1#-2.233515*2.098234*-2*1#-1.042307*2.098233*-2*1#0.148901*2.098233*-2*1#1.340109*2.098234*-2*1#2.531316*2.119513*-2*1#-2.254786*4.992224*-2*5#-1.063578*4.992225*-2*5#0.148901*4.992224*-2*5#1.340109*4.992224*-2*5#2.531317*4.992224*-2*5#-1.659182*4.651755*-2*5#-0.4679745*4.651755*-2*5#0.7445048*4.651755*-2*5#1.935713*4.673034*-2*5#-2.233514*4.311285*-2*1#-1.042307*4.332565*-2*1#0.148901*4.311285*-2*1#1.340109*4.311285*-2*1#2.531317*4.332565*-2*1#-1.616639*3.992095*-2*5#-0.4254313*3.992095*-2*5#0.7870479*3.970815*-2*5#1.978256*3.970815*-2*5#-2.1697*3.672905*-2*5#-0.9572204*3.672905*-2*5#0.2339872*3.651626*-2*5#1.425195*3.651626*-2*5#2.616403*3.651625*-2*5"}};
Debug.Log("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
FileStream stream;
try{
//stream = new FileStream(Application.dataPath+"/Levels/maps.dat", FileMode.Open);
stream = File.Open(Application.persistentDataPath+"/maps.dat", FileMode.Open, FileAccess.Read,FileShare.Read);
Debug.Log("Not Done");
} catch{
Debug.Log("Start");
loading.text = "Loading Assets...";
stream = new FileStream(Application.persistentDataPath+"/maps.dat", FileMode.Create);
loading.text = "file created";
Debug.Log("created");
List<SerializableMap> mapList = new List<SerializableMap>();
BinaryFormatter store = new BinaryFormatter();
Debug.Log("map1 init start");
SerializableMap map = new SerializableMap("as you go", "Aqib", "-2.701489*4.885828*-2*2#-2.212243*4.566638*-2*3#-1.722997*4.247447*-2*4#-1.191208*3.928257*-2*2#-0.5956038*3.609067*-2*3#-0.08508623*3.289877*-2*4#0.5956038*3.609067*-2*3#1.08485*3.928257*-2*2#1.63791*4.247447*-2*4#2.148428*4.566638*-2*3#2.637674*4.885827*-2*2#-0.6168754*4.928386*-2*5#0.5743323*4.928386*-2*5#0*4.609196*-2*5#-2.467502*2.502541*-2*2#-1.276294*2.502541*-2*2#-0.08508627*2.502541*-2*2#1.106121*2.502541*-2*2#2.297329*2.502541*-2*2#-0.6806902*2.183351*-2*3#0.5317891*2.183351*-2*3#-0.08508626*1.864161*-2*3#-2.467502*1.204501*-2*4#-1.276294*1.204501*-2*4#-0.08508626*1.204501*-2*4#1.106122*1.204501*-2*4#2.297329*1.204501*-2*4#-2.467502*0.8853108*-2*2#-1.276294*0.8853109*-2*2#-0.08508627*0.8853108*-2*2#1.106121*0.8853108*-2*2#2.297329*0.8853109*-2*2#-2.467502*0.5661207*-2*4#-1.276294*0.5661207*-2*4#-0.08508626*0.5661207*-2*4#1.106121*0.5661207*-2*4#2.297329*0.5661207*-2*4#2.339873*2.183351*-2*1#2.339872*1.864161*-2*1#1.148665*1.864161*-2*1#-2.467502*2.183351*-2*1#-2.467502*1.864161*-2*1#-1.276294*1.864161*-2*1#2.318601*1.544971*-2*1#1.127393*1.544971*-2*1#-0.08508626*1.54497*-2*1#-1.297566*1.523691*-2*1#-2.488773*1.544971*-2*1", mapPreview[0].EncodeToPNG());
map.lId = "0";
map.wId = "0";
Debug.Log("map1 initiated");
mapList.Add(map);
loading.text = "map1 loaded";
map = new SerializableMap("Simetric Spark", "Aqib", "-2.318601*0.4810033*-2*2#-1.127393*0.4810033*-2*2#0.06381468*0.4810033*-2*2#1.255022*0.4810033*-2*2#2.44623*0.4810033*-2*2#-1.659182*0.8001935*-2*3#-0.4679745*0.8001935*-2*3#0.7232332*0.8001934*-2*3#1.914441*0.8001935*-2*3#-2.297329*1.119384*-2*4#-1.106121*1.119384*-2*4#0.08508626*1.119384*-2*4#1.276294*1.119384*-2*4#2.467502*1.119384*-2*4#-1.616639*1.438574*-2*3#-0.4041598*1.438574*-2*3#0.787048*1.438574*-2*3#1.978256*1.438574*-2*3#-2.233515*1.757764*-2*2#-1.042307*1.757764*-2*2#0.148901*1.757764*-2*2#1.340109*1.757764*-2*2#2.531316*1.757764*-2*2#-2.318601*0.1618132*-2*1#-1.127393*0.1618132*-2*1#0.0638147*0.1618131*-2*1#1.255022*0.1618131*-2*1#2.44623*0.1618132*-2*1#-2.233515*2.098234*-2*1#-1.042307*2.098233*-2*1#0.148901*2.098233*-2*1#1.340109*2.098234*-2*1#2.531316*2.119513*-2*1#-2.254786*4.992224*-2*5#-1.063578*4.992225*-2*5#0.148901*4.992224*-2*5#1.340109*4.992224*-2*5#2.531317*4.992224*-2*5#-1.659182*4.651755*-2*5#-0.4679745*4.651755*-2*5#0.7445048*4.651755*-2*5#1.935713*4.673034*-2*5#-2.233514*4.311285*-2*1#-1.042307*4.332565*-2*1#0.148901*4.311285*-2*1#1.340109*4.311285*-2*1#2.531317*4.332565*-2*1#-1.616639*3.992095*-2*5#-0.4254313*3.992095*-2*5#0.7870479*3.970815*-2*5#1.978256*3.970815*-2*5#-2.1697*3.672905*-2*5#-0.9572204*3.672905*-2*5#0.2339872*3.651626*-2*5#1.425195*3.651626*-2*5#2.616403*3.651625*-2*5", mapPreview[1].EncodeToPNG());
map.lId = "1";
map.wId = "1";
Debug.Log("map2 initiated");
mapList.Add(map);
loading.text = "map2 loaded";
map = new SerializableMap("smile", "kkr23", "-2.449257*5.271926*-2*2#-1.259618*5.271926*-2*2#-0.06997877*5.271926*-2*2#1.11966*5.271926*-2*2#2.309299*5.271926*-2*2#-2.355951*4.478833*-2*4#-1.166313*4.478834*-2*4#0.9563764*4.432181*-2*4#2.146016*4.43218*-2*4#-0.04665251*3.685741*-2*3#-0.04665252*3.3825*-2*3#-0.04665244*3.079258*-2*3#0.5831565*2.776017*-2*3#-0.6064826*2.776017*-2*3#-0.09330502*2.472775*-2*3#-1.516207*1.796314*-2*5#1.609511*1.772988*-2*5#-0.9563764*1.493073*-2*5#1.096334*1.469747*-2*5#0.04665262*1.166505*-2*5#-1.376249*4.035635*-2*1#1.236292*4.035634*-2*1#0.1166313*-0.2330701*-2*2#1.096334*0.07017125*-2*2#-1.026355*0.0934975*-2*2#2.285973*0.07017122*-2*2#-2.215994*0.09349751*-2*2#-2.702663*0.3967388*-2*2#2.71485*0.3734125*-2*2#-2.65601*0.6999801*-2*2#2.71485*0.6766537*-2*2#1.329597*-0.2563963*-2*1#2.542562*-0.23307*-2*1#-1.096334*-0.2563964*-2*1#-2.309299*-0.23307*-2*1#1.236292*1.143179*-2*1#-1.142987*1.189831*-2*1#-2.192668*1.493073*-2*1#2.285973*1.44642*-2*1#2.705846*2.332818*-2*1#-2.65601*2.19286*-2*1#0.02332626*0.8632639*-2*1#-1.189639*0.863264*-2*1#1.236292*0.8166114*-2*1", mapPreview[2].EncodeToPNG());
map.lId = "2";
map.wId = "2";
Debug.Log("map3 initiated");
mapList.Add(map);
loading.text = "map3 loaded";
map = new SerializableMap("simple!!", "crazy", "-2.495909*0.02351876*-2*1#-2.495909*0.32676*-2*1#-2.49756*0.6319761*-2*1#-2.495909*0.9565688*-2*1#-2.495909*1.25981*-2*1#-2.495878*1.577745*-2*1#-1.30627*0.02351872*-2*3#-1.30627*0.32676*-2*3#-1.30627*0.6300014*-2*3#-1.30627*0.9332427*-2*3#-1.317475*1.240833*-2*3#-1.282416*1.544048*-2*3#-0.09330502*0.02351874*-2*4#-0.1166312*0.3500863*-2*4#-0.112468*0.6671167*-2*4#-0.1166315*0.9798949*-2*4#-0.09330499*1.283136*-2*4#-0.09330501*1.586378*-2*4#1.11966*0.02351874*-2*3#1.096334*0.3267601*-2*3#1.096334*0.6300014*-2*3#1.073008*0.9332426*-2*3#1.11966*1.236484*-2*3#1.11966*1.539725*-2*3#2.332626*0.02351876*-2*1#2.285973*0.3267601*-2*1#2.309299*0.6533276*-2*1#2.318407*0.9565688*-2*1#2.355952*1.283136*-2*1#2.332625*1.586378*-2*1#-2.472583*1.889619*-2*1#2.309299*1.889619*-2*1#-1.282944*1.866293*-2*1#-0.09330501*1.889619*-2*1#1.096334*1.866293*-2*1#-2.449257*2.612733*-2*1#-1.259618*2.612734*-2*1#-0.06997877*2.589407*-2*1#1.11966*2.589407*-2*1#2.309299*2.589407*-2*1#-1.236291*2.915974*-2*5#-0.02332625*2.915974*-2*5#1.166313*2.915974*-2*5#1.166313*3.219216*-2*5#-0.04665251*3.219215*-2*5#-1.236291*3.219215*-2*5#1.166313*3.522456*-2*5#-0.04665251*3.522457*-2*5#-1.235738*3.519916*-2*5#-2.449256*2.915973*-2*1#-2.425931*3.219216*-2*1#-2.449257*3.545783*-2*1#2.355952*2.915974*-2*1#2.379278*3.242542*-2*1#2.379278*3.569109*-2*1#-2.42593*3.849025*-2*1#-1.212965*3.825698*-2*1#0*3.825698*-2*1#1.189639*3.825698*-2*1#2.379278*3.872351*-2*1#2.71485*5.3734*-2*1#-2.495909*-0.2797225*-2*1#2.309299*-0.2797226*-2*1#-1.30627*-0.3030488*-2*1#1.096334*-0.2797226*-2*1#-0.09330502*-0.2797226*-2*1", mapPreview[3].EncodeToPNG());
map.lId = "3";
map.wId = "3";
Debug.Log("map4 initiated");
mapList.Add(map);
loading.text = "map4 loaded";
map = new SerializableMap("fun", "funny", "-2.660491*5.431574*-2*2#-1.959405*5.131968*-2*4#-1.67949*4.828727*-2*2#-1.189639*4.478834*-2*4#-0.7697664*4.12894*-2*2#-0.3732201*3.825698*-2*4#0.0466525*3.522457*-2*2#0.4198726*3.219216*-2*4#0.8863976*2.915974*-2*2#1.236292*2.612733*-2*4#1.656164*2.309492*-2*2#2.029384*2.00625*-2*4#2.542562*1.703009*-2*2#2.71485*1.376441*-2*4#2.215994*1.049874*-2*2#1.726143*0.7466326*-2*4#1.259618*0.4433913*-2*2#0.816419*0.1168237*-2*4#0.2565888*-0.1864175*-2*2#1.282944*4.735422*-2*4#1.775978*5.038663*-2*2#0.4431989*4.12894*-2*4#0.7930926*4.43218*-2*2#2.178346*5.341905*-2*4#2.449257*2.636059*-2*4#2.71485*2.962627*-2*2#2.495909*4.735422*-2*4#-1.142987*3.522457*-2*2#-1.609512*3.219215*-2*4#-2.099363*2.915974*-2*2#-2.65601*2.612733*-2*4#-2.122689*2.309492*-2*2#-1.586185*2.00625*-2*4#-1.049681*1.703009*-2*2#-0.5365039*1.399768*-2*4#0.0466525*1.096526*-2*2#0.5131778*0.7466328*-2*4#-1.189639*1.0732*-2*2#-1.562859*0.7466326*-2*4#-2.099363*0.4433914*-2*2#-2.65601*0.1168237*-2*4#0.1399575*1.703009*-2*2#0.7697663*2.006251*-2*4#0.4665251*2.309492*-2*2#2.449257*0.4433913*-2*2#2.71485*0.09349754*-2*4#-2.146015*-0.1864176*-2*2#-1.796122*-0.4896588*-2*4#-1.142987*-0.7929001*-2*2#-0.5831563*-0.4896588*-2*4", mapPreview[4].EncodeToPNG());
map.lId = "4";
map.wId = "4";
Debug.Log("map5 initiated");
mapList.Add(map);
loading.text = "map5 loaded";
map = new SerializableMap("royal", "king", "-0.7464402*2.542754*-2*5#0.4665251*2.542754*-2*5#-0.1632838*2.869322*-2*5#-0.1632838*2.239513*-2*5#-1.376249*2.239513*-2*3#-0.18661*1.936272*-2*3#1.049682*2.239513*-2*3#1.049681*2.845996*-2*3#-0.1399575*3.172563*-2*3#-1.376249*2.869322*-2*3#1.656164*2.542754*-2*1#-1.936079*2.542754*-2*1#-1.376249*3.172563*-2*1#1.073008*3.149237*-2*1#-1.399575*1.936272*-2*1#1.049681*1.936272*-2*1#-2.589214*2.216187*-2*4#-2.589214*2.869322*-2*4#2.262647*2.892648*-2*4#2.262647*2.216187*-2*4#-0.18661*1.63303*-2*4#1.049681*1.63303*-2*4#2.262647*1.63303*-2*4#-1.376249*1.63303*-2*4#-2.589214*1.656356*-2*4#-0.1399575*3.475804*-2*4#1.049681*3.452478*-2*4#-1.376249*3.475804*-2*4#-2.589214*3.475804*-2*4#2.239321*3.452478*-2*4#-2.589214*1.353115*-2*2#-2.192668*1.049874*-2*2#-1.819448*0.7466326*-2*2#-1.446228*0.4433913*-2*2#-1.026355*0.14015*-2*2#-0.6997877*-0.1630913*-2*2#0.5131776*-0.1864175*-2*2#0.8164188*0.1168238*-2*2#2.262647*1.329789*-2*2#1.982732*1.026548*-2*2#1.562859*0.7233063*-2*2#1.189639*0.4225477*-2*2#-0.7930927*1.306463*-2*1#0.4198726*1.329789*-2*1#-0.2332625*1.005704*-2*1#-0.2332626*0.6999801*-2*1#-2.565888*3.802372*-2*3#-2.565888*4.105614*-2*3#-2.565888*4.408854*-2*3#-2.565888*4.712096*-2*3#-2.565888*5.015337*-2*3#-2.565888*5.341905*-2*3#2.215994*3.755719*-2*3#2.215994*4.058961*-2*3#2.215994*4.362202*-2*3#2.215994*4.665443*-2*3#2.215994*4.968685*-2*3#2.215994*5.271926*-2*3#-1.376249*5.038663*-2*3#-1.189639*4.735422*-2*3#-0.9797028*4.43218*-2*3#-0.7930927*4.105613*-2*3#-0.1632838*3.779046*-2*3#1.026355*5.015337*-2*3#0.3965463*4.082287*-2*3#0.629809*4.385529*-2*3#0.8397452*4.696938*-2*3#-0.1632838*5.06199*-2*4#-0.7697664*5.365231*-2*2#0.5131776*5.365231*-2*2#-0.1166313*-0.4896589*-2*2", mapPreview[5].EncodeToPNG());
map.lId = "5";
map.wId = "5";
Debug.Log("map6 initiated");
mapList.Add(map);
loading.text = "map6 loaded";
map = new SerializableMap("toy", "kids", "-0.6298089*5.365232*-2*3#0.5831563*5.373399*-2*3#-1.236292*5.06199*-2*4#-1.819448*4.758749*-2*4#1.166313*5.06199*-2*4#1.749469*4.735422*-2*4#-0.6298088*4.758749*-2*3#0.5598302*4.758748*-2*3#-0.02332626*5.06199*-2*2#-1.959406*3.942329*-2*5#1.772795*3.895676*-2*5#1.772795*3.102584*-2*5#-1.956223*3.079258*-2*5#-0.06997877*3.335847*-2*4#-0.06997876*3.032606*-2*4#-0.0699788*2.729364*-2*4#-1.11966*1.423094*-2*2#0.06997875*1.423094*-2*2#1.259618*1.423094*-2*2#0.06997876*1.0732*-2*2#1.11966*2.729364*-2*1#1.11966*4.198918*-2*1#1.096334*2.426123*-2*1#1.096334*2.122882*-2*1#1.096334*1.81964*-2*1#-1.30627*2.752691*-2*1#-1.446228*4.268897*-2*1#-1.282944*2.426123*-2*1#-1.282944*2.122882*-2*1#-1.30627*1.796314*-2*1#-2.495909*2.752691*-2*1#2.309299*2.776017*-2*1#2.71485*3.522457*-2*1#-2.65601*3.522457*-2*1#-2.67723*0.3997089*-2*3#-1.30627*0.420065*-2*3#0.04665253*0.420065*-2*3#1.376249*0.3967388*-2*3#2.71485*0.3967388*-2*3#-0.09330502*2.122882*-2*3", mapPreview[6].EncodeToPNG());
map.lId = "6";
map.wId = "6";
Debug.Log("map7 initiated");
mapList.Add(map);
loading.text = "map7 loaded";
map = new SerializableMap("art", "crazy", "-1.469554*3.685741*-2*5#-2.65601*3.685741*-2*3#-0.2799151*3.685741*-2*3#-1.446228*3.988982*-2*3#-1.446228*3.382499*-2*3#2.71485*2.496102*-2*3#1.516207*2.496102*-2*5#0.3032413*2.496102*-2*3#1.516207*2.799343*-2*3#1.516207*2.169534*-2*3#2.705846*5.3734*-2*5#2.71485*5.06199*-2*3#1.49288*5.3734*-2*3#-2.65601*5.3734*-2*5#-2.65601*5.038664*-2*3#-1.469554*5.3734*-2*3#-1.446228*1.44642*-2*5#-2.65601*1.44642*-2*3#-0.2565888*1.44642*-2*3#-1.446228*1.749661*-2*3#-1.469554*1.143179*-2*3#2.718858*0.3387481*-2*5#2.71485*0.6533276*-2*3#2.705846*0.02351874*-2*3#1.539533*0.3500863*-2*3#0.2799151*2.122881*-2*1#-0.1399575*1.81964*-2*1#-0.18661*3.312521*-2*1#0.18661*2.915974*-2*1#1.073008*4.968684*-2*1#-0.18661*4.035635*-2*1#0.4665251*4.502159*-2*1#-0.1399576*1.143179*-2*1#0.5365039*0.7466326*-2*1#-2.65601*-0.1864175*-2*5#-1.446228*-0.1864175*-2*3#-2.65601*-0.5129852*-2*3#-2.65601*0.1168237*-2*3", mapPreview[7].EncodeToPNG());
map.lId = "7";
map.wId = "7";
Debug.Log("map8 initiated");
mapList.Add(map);
loading.text = "map8 loaded";
map = new SerializableMap("solid", "kkr23", "-0.4665251*5.396726*-2*3#0.7464401*5.396727*-2*3#-1.049681*5.085316*-2*4#-1.67949*4.782074*-2*4#1.352923*5.085316*-2*4#1.936079*4.782074*-2*4#0.1632838*5.085316*-2*2#0.6997876*4.782075*-2*5#-0.4898514*4.782074*-2*3#1.936079*4.478833*-2*3#0.7231139*4.478833*-2*4#-0.5131776*4.478833*-2*2#-1.702817*4.455507*-2*3#1.936079*4.175592*-2*4#0.7231139*4.175592*-2*2#-1.67949*4.152266*-2*4#-0.4898514*4.175592*-2*3#-0.4898514*3.849024*-2*5#0.723114*3.849024*-2*4#1.912753*3.849024*-2*3#-1.67949*3.849024*-2*3#-1.67949*3.545783*-2*4#-0.4898514*3.545783*-2*3#1.936079*3.545783*-2*4#0.7231139*3.545783*-2*2#-1.67949*3.242542*-2*3#1.936079*3.242542*-2*3#-0.4898514*3.242542*-2*2#0.6997876*3.242542*-2*4#0.7231139*2.9393*-2*5#1.936079*2.9393*-2*4#-0.4898514*2.939301*-2*3#-1.67949*2.939301*-2*4#-1.67949*2.63606*-2*3#1.959405*2.63606*-2*3#0.7231139*2.636059*-2*4#-0.4898514*2.636059*-2*2#1.959406*2.332818*-2*4#-1.679491*2.332818*-2*4#-0.4898514*2.332818*-2*3#0.7231139*2.332818*-2*2#-0.4898514*2.029577*-2*5#-0.4898514*1.726335*-2*3#-0.4898514*1.423094*-2*2#-0.4898514*1.119853*-2*3#-0.4898514*0.8166113*-2*2#-0.4898514*0.5133701*-2*3#0.7231139*2.029577*-2*4#0.7231139*1.726335*-2*2#0.723114*1.423094*-2*4#0.7231139*1.119853*-2*5#0.723114*0.8166113*-2*4#0.723114*0.51337*-2*2#1.959405*2.029577*-2*3#1.959405*1.726335*-2*4#1.959406*1.423094*-2*3#1.959405*1.119853*-2*4#1.936079*0.8166113*-2*3#1.936079*0.51337*-2*4#-1.67949*2.029577*-2*3#-1.67949*1.726335*-2*4#-1.67949*1.423094*-2*3#-1.679491*1.119853*-2*4#-1.67949*0.8166114*-2*3#-1.67949*0.51337*-2*4#-1.049681*0.2101288*-2*4#1.352923*0.2101288*-2*4#0.1632838*0.2101287*-2*2#-0.4898514*-0.09311253*-2*3#0.6997877*-0.09311259*-2*3", mapPreview[8].EncodeToPNG());
map.lId = "8";
map.wId = "8";
Debug.Log("map9 initiated");
mapList.Add(map);
loading.text = "map9 loaded";
map = new SerializableMap("illusion", "mask", "-0.09368068*5.037866*-2*5#-0.07026041*4.709984*-2*1#1.124166*4.709983*-2*1#2.318593*4.709984*-2*1#-1.264687*4.709983*-2*1#-2.459113*4.709984*-2*1#1.756509*4.171321*-2*1#-1.85019*4.124481*-2*1#-0.0936805*4.147901*-2*1#-0.9836452*3.632658*-2*1#0.8665447*3.632658*-2*1#-0.1171006*3.140836*-2*1#-0.9836452*2.602173*-2*1#0.772864*2.578753*-2*1#-0.0936805*1.99325*-2*1#-1.007065*1.454587*-2*1#0.7728642*1.454587*-2*1#-0.07026038*0.751983*-2*1#1.77993*3.070575*-2*1#1.756509*1.96983*-2*1#1.75651*0.7754033*-2*1#-1.733089*0.7051429*-2*1#-1.733089*1.99325*-2*1#-1.756509*3.093995*-2*1#0.7962843*0.09621967*-2*1#-1.100746*0.07279953*-2*1#-2.65601*0.09621967*-2*1#2.529374*0.09621964*-2*1#-1.297643*-0.419023*-2*1#-0.1171006*-0.4190231*-2*1#1.077326*-0.4190231*-2*1#2.271752*-0.419023*-2*1#-2.482533*-0.419023*-2*1#1.124166*5.042131*-2*1#-1.288107*5.037866*-2*1#-0.1171006*5.3734*-2*1", mapPreview[9].EncodeToPNG());
map.lId = "9";
map.wId = "9";
Debug.Log("map10 initiated");
mapList.Add(map);
loading.text = "map10 loaded";
loading.text = "serializing maps";
Debug.Log("serializing initiated");
store.Serialize(stream, mapList);
stream.Flush();
stream.Close();
Debug.Log("serializing done");
Debug.Log("Done");
loading.text = "Assets loaded";
loading.text = "";
foreach(GameObject go in menuButtons){
go.SetActive(true);
}
}
}
// Update is called once per frame
void Update () {
}
}