コード例 #1
0
    void OnEnable()
    {
        PathField.text       = EnvPaths.GetInstalationPath();
        MapsPathField.text   = EnvPaths.GetMapsPath();
        BackupPathField.text = EnvPaths.GetBackupPath();

        PlayAs.value  = GetFaction();
        FogOfWar.isOn = GetFogOfWar();
    }
コード例 #2
0
    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();
    }
コード例 #3
0
    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);
    }
コード例 #4
0
    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);
        }
    }
コード例 #5
0
    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);
        }
    }