mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Simplify conditional
This commit is contained in:
parent
5d28548943
commit
dcd723accf
@ -1136,13 +1136,8 @@ bool HasMoved()
|
|||||||
{
|
{
|
||||||
diff = Mathf.Abs(m_RigidBody2D.velocity.sqrMagnitude - m_PrevVelocity);
|
diff = Mathf.Abs(m_RigidBody2D.velocity.sqrMagnitude - m_PrevVelocity);
|
||||||
}
|
}
|
||||||
if (diff > k_LocalVelocityThreshold)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
return diff > k_LocalVelocityThreshold;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Client]
|
[Client]
|
||||||
|
Loading…
Reference in New Issue
Block a user