NetworkProximityChecker: removed GetCompnent<NetworkIdentity> call in each check

This commit is contained in:
vis2k 2018-12-17 22:50:56 +01:00
parent 7ad844cab7
commit cd2229054a

View File

@ -38,7 +38,7 @@ void Update()
if (Time.time - m_VisUpdateTime > visUpdateInterval)
{
GetComponent<NetworkIdentity>().RebuildObservers(false);
netIdentity.RebuildObservers(false);
m_VisUpdateTime = Time.time;
}
}