修复编译错误
This commit is contained in:
@@ -66,7 +66,7 @@ namespace BaseGames.Support.AntiSoftlock
|
||||
if (_player == null || !_player.Stats.IsAlive) return;
|
||||
|
||||
Vector2 pos = _player.transform.position;
|
||||
float vel = _playerRb != null ? _playerRb.linearVelocity.magnitude : Vector2.Distance(pos, _lastPos) / Time.deltaTime;
|
||||
float vel = _playerRb != null ? _playerRb.velocity.magnitude : Vector2.Distance(pos, _lastPos) / Time.deltaTime;
|
||||
|
||||
if (vel > _minVelocityThreshold)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user