Renamed m_VisUpdateTime lastUpdateTime (#711)

This commit is contained in:
rodolphito 2019-04-04 00:48:28 -07:00 committed by vis2k
parent a5ead70961
commit 77e5de7352

View File

@ -31,7 +31,7 @@ public enum CheckMethod
[Tooltip("Select only the Player's layer to avoid unnecessary SphereCasts against the Terrain, etc.")]
public LayerMask castLayers = ~0;
float m_VisUpdateTime;
float lastUpdateTime;
// OverlapSphereNonAlloc array to avoid allocations.
// -> static so we don't create one per component
@ -46,10 +46,10 @@ void Update()
if (!NetworkServer.active)
return;
if (Time.time - m_VisUpdateTime > visUpdateInterval)
if (Time.time - lastUpdateTime > visUpdateInterval)
{
netIdentity.RebuildObservers(false);
m_VisUpdateTime = Time.time;
lastUpdateTime = Time.time;
}
}