修复编译错误
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)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"BaseGames.Progression",
|
||||
"BaseGames.Platform",
|
||||
"Unity.TextMeshPro",
|
||||
"Unity.RenderPipelines.Universal.Runtime"
|
||||
"Unity.RenderPipelines.Universal.Runtime",
|
||||
"Unity.RenderPipelines.Core.Runtime"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
Reference in New Issue
Block a user