예제 #1
0
    //public static enumShieldType type_defualt;

    public static void SaveAsDefault(DriveWheel_Upg P)
    {
        DriveWheel_UpgClipboard.default_saved = true;
        DriveWheel_UpgClipboard.AdjustMaxSpeedFraction_default = P.AdjustMaxSpeedFraction;
        DriveWheel_UpgClipboard.DamperScalar_default           = P.DamperScalar;
        DriveWheel_UpgClipboard.SpringScalar_default           = P.SpringScalar;
        DriveWheel_UpgClipboard.AdjustTractionFraction_default = P.AdjustTractionFraction;
        DriveWheel_UpgClipboard.AdjustBrakeFraction_default    = P.AdjustBrakeFraction;
        DriveWheel_UpgClipboard.WheelMode_default            = P.WheelMode;
        DriveWheel_UpgClipboard.FacingDirectionFloat_default = P.FacingDirectionFloat;
        //DriveWheel_UpgClipboard.type_defualt = P.type;
    }
예제 #2
0
    public static void LoadDefault(DriveWheel_Upg P)
    {
        if (DriveWheel_UpgClipboard.default_saved)
        {
            P.AdjustMaxSpeedFraction = DriveWheel_UpgClipboard.AdjustMaxSpeedFraction_default;
            P.DamperScalar           = DriveWheel_UpgClipboard.DamperScalar_default;
            P.SpringScalar           = DriveWheel_UpgClipboard.SpringScalar_default;
            P.AdjustTractionFraction = DriveWheel_UpgClipboard.AdjustTractionFraction_default;
            P.AdjustBrakeFraction    = DriveWheel_UpgClipboard.AdjustBrakeFraction_default;
            P.AdjustBrakeFraction    = DriveWheel_UpgClipboard.AdjustBrakeFraction_default;
            P.WheelMode = DriveWheel_UpgClipboard.WheelMode_default;

            //P.SetWheelMode ( P.WheelMode ) ;

            //P.SetFacingDirection ( P.FacingDirectionFloat ) ;

            //P.DamperSpringInit() ;
            //P.DamperSpringScaling() ;
            //P.ApplyInitSuspentionParam() ;

            // P.SetShieldSizeAndPosition();
            //P.StuffChangedSyncIt();
        }
    }