added shadows to flashlight

This commit is contained in:
Mister_Nebula 2020-12-06 10:10:21 +00:00
parent a09e9568e7
commit c3dee2c3ae

View File

@ -26,10 +26,12 @@ namespace QSB.Tools
_root = oldComponent.GetValue<Transform>("_root");
_basePivot = oldComponent.GetValue<Transform>("_basePivot");
_wobblePivot = oldComponent.GetValue<Transform>("_wobblePivot");
Destroy(oldComponent.GetComponent<LightLOD>());
foreach (var light in _lights)
{
light.GetLight().enabled = false;
light.GetLight().shadows = LightShadows.Soft;
}
_flashlightOn = false;
}