Пример #1
0
 public void ResetToDefaultValues()
 {
     PhysicalConfigurable.SetAllValuesToDefault();
     PhysicalConfigurable.SaveConfig();
     LoadConfigValuesIntoFields();
     SaveValuesToConfig();
 }
Пример #2
0
    void CompleteAutoConfig(Vector3 bottomPos, Vector3 topPos)
    {
        PhysicalConfigurable.SetAllValuesToDefault();
        var setup = CalculateConfigurationValues(bottomPos, topPos);


        PhysicalConfigurable.UpdateConfig(setup);
        PhysicalConfigurable.SaveConfig();
        ConfigurationSetupController.Instance.ChangeState(ConfigState.AUTO_COMPLETE);
    }
Пример #3
0
    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);
    }