v10 全量评审:修复 TD-06 至 TD-12(InputReader 移除资产扫描回退 / EmergencySave 解除 LocalFileStorage 直接依赖 / AccessibilityManager 注册 IAccessibilityService / HUDController HP/SpringIcon SetActive 复用 / MovingPlatform 缓存 WaitForSeconds / RewardSO IRewardTarget 解耦 Quest←Player 依赖 / CrashReporter 频率限制崩溃日志)
This commit is contained in:
@@ -32,6 +32,7 @@ namespace BaseGames.World
|
||||
private bool _movingForward = true;
|
||||
private bool _triggered;
|
||||
private bool _waiting;
|
||||
private WaitForSeconds _waitForEndpoint;
|
||||
private readonly CompositeDisposable _subs = new();
|
||||
|
||||
private void Awake()
|
||||
@@ -39,6 +40,7 @@ namespace BaseGames.World
|
||||
_rb = GetComponent<Rigidbody2D>();
|
||||
_rb.bodyType = RigidbodyType2D.Kinematic;
|
||||
_rb.interpolation = RigidbodyInterpolation2D.Interpolate;
|
||||
_waitForEndpoint = new WaitForSeconds(_waitAtEndpoint);
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
@@ -73,7 +75,7 @@ namespace BaseGames.World
|
||||
private IEnumerator WaitAndAdvance()
|
||||
{
|
||||
_waiting = true;
|
||||
yield return new WaitForSeconds(_waitAtEndpoint);
|
||||
yield return _waitForEndpoint;
|
||||
AdvanceWaypoint();
|
||||
_waiting = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user