mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkIdentity.SetLocalPlayer: use foreach
This commit is contained in:
parent
1ad3b120b6
commit
dac128f036
@ -730,9 +730,8 @@ internal void SetLocalPlayer()
|
||||
hasAuthority = true;
|
||||
}
|
||||
|
||||
for (int i = 0; i < m_NetworkBehaviours.Length; i++)
|
||||
foreach (NetworkBehaviour comp in m_NetworkBehaviours)
|
||||
{
|
||||
NetworkBehaviour comp = m_NetworkBehaviours[i];
|
||||
comp.OnStartLocalPlayer();
|
||||
|
||||
if (localPlayerAuthority && !originAuthority)
|
||||
|
Loading…
Reference in New Issue
Block a user