void OnEnable() { PathField.text = EnvPaths.GetInstalationPath(); MapsPathField.text = EnvPaths.GetMapsPath(); BackupPathField.text = EnvPaths.GetBackupPath(); PlayAs.value = GetFaction(); FogOfWar.isOn = GetFogOfWar(); }
void OnEnable() { PathField.text = EnvPaths.GetInstalationPath(); MapsPathField.text = EnvPaths.GetMapsPath(); BackupPathField.text = EnvPaths.GetBackupPath(); PlayAs.value = GetFaction(); FogOfWar.isOn = GetFogOfWar(); Markers2D.isOn = GetMarkers2D(); HeightmapClamp.isOn = GetHeightmapClamp(); }
void GenerateBackupPath() { string BackupId = System.DateTime.Now.Month.ToString() + System.DateTime.Now.Day.ToString() + System.DateTime.Now.Hour.ToString() + System.DateTime.Now.Minute.ToString() + System.DateTime.Now.Second.ToString(); BackupPath = EnvPaths.GetBackupPath(); if (string.IsNullOrEmpty(BackupPath)) { BackupPath = GetDataPath() + "/MapsBackup/"; } BackupPath += FolderName + "/Backup_" + BackupId; if (BackupFiles && !System.IO.Directory.Exists(BackupPath)) System.IO.Directory.CreateDirectory(BackupPath); }
void GenerateBackupPath() { string BackupId = BackupPath = EnvPaths.GetBackupPath(); if (string.IsNullOrEmpty(BackupPath)) { BackupPath = GetDataPath() + "/MapsBackup/"; } BackupPath += FolderName + "/Backup_" + BackupId; if (BackupFiles && !System.IO.Directory.Exists(BackupPath)) { System.IO.Directory.CreateDirectory(BackupPath); } }
void GenerateBackupPath() { string BackupId = System.DateTime.Now.Month.ToString() + System.DateTime.Now.Day.ToString() + System.DateTime.Now.Hour.ToString() + System.DateTime.Now.Minute.ToString() + System.DateTime.Now.Second.ToString(); BackupPath = EnvPaths.GetBackupPath(); if (string.IsNullOrEmpty(BackupPath)) { BackupPath = Application.dataPath + "/MapsBackup/"; #if UNITY_EDITOR BackupPath = BackupPath.Replace("Assets/", ""); #endif //BackupPath = FolderParentPath; } BackupPath += FolderName + "/Backup_" + BackupId; if (BackupFiles && !System.IO.Directory.Exists(BackupPath)) { System.IO.Directory.CreateDirectory(BackupPath); } }