Пример #1
0
        private void DeserializeFromPath()
        {
            // Read in the serialized state
            string content = File.ReadAllText(Path);

            // Restore the value
            Value = SerializationHelpers.DeserializeFromContent<SerializedStruct, JsonNetSerializer>(content);
            Debug.Log("Object state has been restored from " + Path);
        }
Пример #2
0
        private void DeserializeFromPath()
        {
#if (!UNITY_EDITOR && UNITY_WINRT) == false
            // Read in the serialized state
            string content = File.ReadAllText(Path);

            // Restore the value
            Value = fiSerializationHelpers.DeserializeFromContent <SerializedStruct, FullSerializerSerializer>(content);
            Debug.Log("Object state has been restored from " + Path);
#endif
        }