示例#1
0
    //Reset stats and inventory
    public void ResetStats()
    {
        EngineHealth = 500;
        currentSpeed = 0f;

        equipmentPanel.RemoveAll();

        FrontBumperArmor.RemoveAllModifiersFromSource(FrontBumperArmor);
        RearBumperArmor.RemoveAllModifiersFromSource(RearBumperArmor);
        RightFlankArmor.RemoveAllModifiersFromSource(RightFlankArmor);
        LeftFlankArmor.RemoveAllModifiersFromSource(LeftFlankArmor);
        Maneuverability.RemoveAllModifiersFromSource(Maneuverability);
        MaximumSpeed.RemoveAllModifiersFromSource(MaximumSpeed);
        WheelArmor.RemoveAllModifiersFromSource(WheelArmor);
        TiresArmor.RemoveAllModifiersFromSource(TiresArmor);
        AccelerationSpeed.RemoveAllModifiersFromSource(AccelerationSpeed);
        DecelerationSpeed.RemoveAllModifiersFromSource(DecelerationSpeed);

        inventory.Clear();
    }