切换主武器

This commit is contained in:
SoulliesOfficial
2025-12-23 19:47:06 -05:00
parent eaa688c7a9
commit 2a2aa728d5
275 changed files with 12579 additions and 2770 deletions

View File

@@ -23,7 +23,7 @@ namespace MoreMountains.Feedbacks
[Tooltip("whether we're working on scaled or unscaled time")]
public TimescaleModes TimescaleMode = TimescaleModes.Scaled;
[Tooltip("if this is true, the feedback will apply the owner's timescale")]
public bool applyOwnerExternalTimescale = true;
public bool applyOwnerExternalTimescale = false;
[Header("Exceptions")]
/// if this is true, holding pauses won't wait for this feedback to finish

View File

@@ -63,7 +63,9 @@ namespace MoreMountains.Feedbacks
float baseDelta = (TimescaleMode == TimescaleModes.Scaled) ? Time.deltaTime : Time.unscaledDeltaTime;
// 关键点:如果当前有时间源,则乘以该来源的局部缩放
float multiplier = (CurrentSource != null && CurrentSource.Timing.applyOwnerExternalTimescale && CurrentSource.Owner.ApplyExternalTimeScale)
float multiplier = (CurrentSource != null &&
CurrentSource.Timing.applyOwnerExternalTimescale &&
CurrentSource.Owner.ApplyExternalTimeScale)
? CurrentSource.Owner.ExternalTimeScale : 1f;
return baseDelta * multiplier;