Keep Unity state surface compile fixes

This commit is contained in:
Meta Vens 2026-06-27 13:36:40 +01:00
commit 6dba17d86c
10 changed files with 53 additions and 11 deletions

View file

@ -53,10 +53,10 @@ public sealed class AetheriaUnityPilotFrameAdapter
if (renderSettings != null)
{
if (HeatstrokePost != null)
HeatstrokePost.weight = (float)renderSettings.NormalizeHeatstrokePost(currentEntity.Heatstroke);
HeatstrokePost.weight = (float)renderSettings.Value.NormalizeHeatstrokePost(currentEntity.Heatstroke);
if (SevereHeatstrokePost != null)
SevereHeatstrokePost.weight =
(float)renderSettings.ResolveSevereHeatstrokePostWeight(currentEntity.Heatstroke, timeSeconds);
(float)renderSettings.Value.ResolveSevereHeatstrokePostWeight(currentEntity.Heatstroke, timeSeconds);
}
if (currentEntity is Ship)