Exemplo n.º 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
    }
Exemplo n.º 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());
    }