public void ResetToDefaultValues() { PhysicalConfigurable.SetAllValuesToDefault(); PhysicalConfigurable.SaveConfig(); LoadConfigValuesIntoFields(); SaveValuesToConfig(); }
void CompleteAutoConfig(Vector3 bottomPos, Vector3 topPos) { PhysicalConfigurable.SetAllValuesToDefault(); var setup = CalculateConfigurationValues(bottomPos, topPos); PhysicalConfigurable.UpdateConfig(setup); PhysicalConfigurable.SaveConfig(); ConfigurationSetupController.Instance.ChangeState(ConfigState.AUTO_COMPLETE); }
void CompleteAutoConfig(Vector3 bottomPos, Vector3 topPos) { PhysicalConfigurable.SetAllValuesToDefault(); var setup = CalculateConfigurationValues(bottomPos, topPos); // Make sure that past this point the selected mount type has been reset as it has been used above ConfigurationSetupController.selectedMountType = MountingType.NONE; PhysicalConfigurable.UpdateConfig(setup); PhysicalConfigurable.SaveConfig(); ConfigurationSetupController.Instance.ChangeState(ConfigState.AUTO_COMPLETE); }