public void Create(MapCreateInfo info) { info.savePath = savePath + "/" + info.mapName + ".json"; string save = JsonUtility.ToJson(info); File.WriteAllText(info.savePath, save); SceneChanger changer = FindObjectOfType <SceneChanger>(); changer.CreateMap(info.savePath); }