private void Awake()
        {
            var settings = PersistenceSettings.GetPersistenceSettings();

            m_persistenceSettings = settings;
            serializedObject      = new SerializedObject(settings);
        }
Esempio n. 2
0
 private void InitializeVariables()
 {
     m_jsonEncrypter = new JsonEncryption();
     m_dataStoreHash = new Dictionary <string, DataStore>();
     m_settings      = PersistenceSettings.GetPersistenceSettings();
     m_prefabManager = new PrefabManager(m_settings);
 }
        public static void ClearSaveFile()
        {
            var settings = PersistenceSettings.GetPersistenceSettings();

            if (File.Exists(settings.FilePath))
            {
                File.Delete(settings.FilePath);
            }
        }
 private void Awake()
 {
     m_persistenceSettings  = PersistenceSettings.GetPersistenceSettings();
     m_persistentGameObject = (PersistentGameObject)target;
     if (String.IsNullOrEmpty(m_persistentGameObject.ObjectId))
     {
         m_persistentGameObject.ObjectId = m_persistentGameObject.gameObject.name + "_" + Guid.NewGuid();
     }
 }
        public static void OpenSaveFolder()
        {
            var settings = PersistenceSettings.GetPersistenceSettings();
            ProcessStartInfo startInformation = new ProcessStartInfo();

            if (!Directory.Exists(settings.FileFolder))
            {
                Directory.CreateDirectory(settings.FileFolder);
            }

            startInformation.FileName = settings.FileFolder;
            Process.Start(startInformation);
        }