Ejemplo n.º 1
0
 /// <summary>
 /// Static constructor to initialise the serializer.
 /// </summary>
 static GameSettings()
 {
     _serializer.RegisterJsonSerializationSettings(typeof(GameSettings), new JsonSerializerSettings()
     {
         Formatting          = Formatting.Indented,
         SerializationBinder = new DefaultSerializationBinder()
     });
 }
Ejemplo n.º 2
0
        public void OnEnable()
        {
            VR = !XRSettings.loadedDeviceName.Equals(string.Empty);

            _serializer.RegisterJsonSerializationSettings(typeof(GameSettings), new JsonSerializerSettings()
            {
                Formatting          = Formatting.Indented,
                SerializationBinder = new DefaultSerializationBinder()
            });
        }