Files

32 lines
922 B
C#
Raw Permalink Normal View History

2025-11-25 08:19:33 -05:00
using DG.Tweening;
2026-02-13 09:22:11 -05:00
using SLSUtilities.General;
using SLSUtilities.Rendering.PostProcessing;
2025-11-25 08:19:33 -05:00
using UnityEngine;
namespace Cielonos.MainGame.Effects
{
public partial class SpeedLinesSubmodule : PostProcessingSubmoduleBase
{
public LerpFloat remap;
public SpeedLinesSubmodule(PostProcessingManager manager) : base(manager)
{
2026-04-18 13:57:19 -04:00
remap = new LerpFloat(1, 0.02f, 0.1f);
2025-11-25 08:19:33 -05:00
}
public override void Update(float factor)
{
remap.Update(factor);
if (owner.GetVolumeComponent<SpeedLines>(out var speedLines))
{
speedLines.speedLinesRemap.value = remap.currentValue;
}
}
}
public partial class SpeedLinesSubmodule
{
2026-04-18 13:57:19 -04:00
public void SetRemap(float value) => remap.targetValue = value;
2025-11-25 08:19:33 -05:00
public void ModifyRemap(float value) => ModifyCurrentValue(remap, value);
}
}