// Use this for initialization void Start() { ConfigData conData = new ConfigData(); LoadMap loadMap = new LoadMap(); conData.Load(); loadMap.readMap(conData.allMap[1]); }