private void AxisBindCopy(AxisBindings from, AxisBindings to) { to.Clear(); foreach (string key in from.Keys) { to.Add(key, from[key]); } }
void OnValidate() { if (filename == "") { filename = "default.json"; } if (Save) { SaveData(filename); Save = false; } if (Load) { string filePath = Path.Combine(Application.streamingAssetsPath, filename); if (File.Exists(filePath)) { LoadData(filename); } Load = false; } if (New_File) { Keyboard.Clear(); Mouse.Clear(); J1Axis.Clear(); J1Buttons.Clear(); J2Axis.Clear(); J2Buttons.Clear(); J3Axis.Clear(); J3Buttons.Clear(); J4Axis.Clear(); J4Buttons.Clear(); New_File = false; } }