public void SaveScmap() { string MapFilePath = MapRelativePath(ScenarioLuaFile.Data.map); string FileName = ScenarioLuaFile.Data.map; char[] NameSeparator = ("/").ToCharArray(); string[] Names = FileName.Split(NameSeparator); //Debug.Log(BackupPath + "/" + Names[Names.Length - 1]); if (BackupFiles && System.IO.File.Exists(MapFilePath)) System.IO.File.Move(MapFilePath, BackupPath + "/" + Names[Names.Length - 1]); HeightmapControler.SaveScmapFile(); }