切换主武器
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user