public void SaveKeybinds() { FileStream file = File.Create(Application.persistentDataPath + "/keybinds"); SerializeStatic.Save(typeof(InputManager), file); file.Close(); }
static void Main() { Console.WriteLine("Serializing AppSettings.cs from XPlatformCloudKit.PCL"); try { SerializeStatic.Save(typeof(AppSettings), @"..\..\AppSettings.json"); } catch (Exception e) { Console.WriteLine("Error encountered: " + e.Message); } }