狗屎Minimax坏我代码
This commit is contained in:
@@ -50,13 +50,15 @@ namespace Cielonos
|
||||
/// <returns>如果成功找到,返回 true</returns>
|
||||
public bool GetVolumeComponent<T>(out T component) where T : VolumeComponent
|
||||
{
|
||||
component = null;
|
||||
if (componentCache == null) return false;
|
||||
|
||||
Type type = typeof(T);
|
||||
|
||||
// 1. 尝试从缓存中获取
|
||||
if (componentCache.TryGetValue(type, out var cachedComponent))
|
||||
{
|
||||
component = (T)cachedComponent;
|
||||
return component != null;
|
||||
}
|
||||
|
||||
// 2. 如果缓存中没有,从 Profile 中获取
|
||||
@@ -69,7 +71,6 @@ namespace Cielonos
|
||||
|
||||
// 3. 未找到
|
||||
Debug.LogWarning($"PostProcessManager: 在 Volume Profile 中未找到类型为 {type.Name} 的组件。");
|
||||
component = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Cielonos.MainGame.Effects
|
||||
|
||||
public SpeedLinesSubmodule(PostProcessingManager manager) : base(manager)
|
||||
{
|
||||
remap = new LerpFloat(1, 0.05f);
|
||||
remap = new LerpFloat(1, 0.02f, 0.1f);
|
||||
}
|
||||
|
||||
public override void Update(float factor)
|
||||
@@ -26,7 +26,7 @@ namespace Cielonos.MainGame.Effects
|
||||
|
||||
public partial class SpeedLinesSubmodule
|
||||
{
|
||||
public void SetRemap(float value) => SetCurrentValue(remap, value);
|
||||
public void SetRemap(float value) => remap.targetValue = value;
|
||||
public void ModifyRemap(float value) => ModifyCurrentValue(remap, value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user