mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkProximityChecker: removed GetCompnent<NetworkIdentity> call in each check
This commit is contained in:
parent
7ad844cab7
commit
cd2229054a
@ -38,7 +38,7 @@ void Update()
|
||||
|
||||
if (Time.time - m_VisUpdateTime > visUpdateInterval)
|
||||
{
|
||||
GetComponent<NetworkIdentity>().RebuildObservers(false);
|
||||
netIdentity.RebuildObservers(false);
|
||||
m_VisUpdateTime = Time.time;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user