Example #1
0
        //----------------
        // LOAD
        //----------------
        void Load(string _path)
        {
            //before loading and building the map we have to delete the old map
            GameObject _container = GameObject.Find("TWC_World");

            Destroy(_container.gameObject);

            TileWorldCreatorSaveLoad.Load(_path, creator);

            creator.firstTimeBuild = true;
            BuildMap();

            Init(false);
        }
Example #2
0
        //----------------
        // SAVE
        //----------------
        void Save(string _name)
        {
            string _finalPath = Path.Combine(Application.dataPath, Path.Combine(path, _name + fileExtension));

            TileWorldCreatorSaveLoad.Save(_finalPath, creator);
        }