예제 #1
0
    /// <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
    }
예제 #2
0
    /// <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());
    }