/// <summary> /// Save /// </summary> /// <param name="type"></param> /// <param name="fileName"></param> public void Save(MapPositioningType type, string fileName) { string path = Application.dataPath + "/Resources/" + MapSetting.MAP_POSITIONING_FOLDER_NAME + fileName; positioning[type].Save(path + "_" + type.ToString().ToLower() + ".txt"); #if UNITY_EDITOR UnityEditor.AssetDatabase.Refresh(); #endif }
/// <summary> /// Load /// </summary> /// <param name="type"></param> /// <param name="fileName"></param> public void Load(MapPositioningType type, string fileName) { string path = MapSetting.MAP_POSITIONING_FOLDER_NAME + fileName; positioning[type].Load(path + "_" + type.ToString().ToLower()); }