示例#1
0
 public string GetSavePath(ES2Settings.SaveLocation saveLocation)
 {
     if (IsURL())
     {
         return(filePath);
     }
     else if (saveLocation == ES2Settings.SaveLocation.PlayerPrefs)
     {
         return(playerPrefsPath);
     }
     else if (saveLocation == ES2Settings.SaveLocation.File)
     {
         return(filePath);
     }
     return("");
 }
示例#2
0
    public void Init()
    {
        if (!ES2.initialised)
        {
            ES2.Init();
        }

        // Initialize global settings,
        saveLocation       = ES2GlobalSettings.defaultSaveLocation;
        optimizeMode       = ES2GlobalSettings.defaultOptimizeMode;
        format             = ES2GlobalSettings.defaultFormat;
        encrypt            = ES2GlobalSettings.defaultEncrypt;
        encryptionPassword = ES2GlobalSettings.defaultEncryptionPassword;
        encryptionType     = ES2GlobalSettings.defaultEncryptionType;
        webUsername        = ES2GlobalSettings.defaultWebUsername;
        webPassword        = ES2GlobalSettings.defaultWebPassword;
        webFilename        = ES2GlobalSettings.defaultWebFilename;
    }
示例#3
0
    public void Awake()
    {
        if (Application.platform == RuntimePlatform.WebGLPlayer)
        {
            defaultSaveLocation = ES2Settings.SaveLocation.PlayerPrefs;
        }
        else
        {
            defaultSaveLocation = saveLocation;
        }


        defaultOptimizeMode       = optimizeMode;
        defaultEncrypt            = encrypt;
        defaultEncryptionPassword = encryptionPassword;
        defaultEncryptionType     = encryptionType;
        defaultWebUsername        = webUsername;
        defaultWebPassword        = webPassword;
        defaultBufferSize         = bufferSize;
        defaultPCDataPath         = PCDataPath;
        defaultMacDataPath        = MacDataPath;
    }
示例#4
0
 public ES2Settings(SaveLocation saveLocation)
 {
     Init();
     this.saveLocation = saveLocation;
 }