From e87c1d6a260f0c63dda5b0ab546725e4835d6dc1 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 27 Feb 2020 10:08:36 +0100 Subject: [PATCH] add comments --- Assets/Mirror/Runtime/NetworkIdentity.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index e0487603d..6226a038e 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -584,6 +584,9 @@ internal void OnStartAuthority() { foreach (NetworkBehaviour comp in NetworkBehaviours) { + // an exception in OnStartAuthority should be caught, so that one + // component's exception doesn't stop all other components from + // being initialized try { comp.OnStartAuthority(); @@ -599,6 +602,9 @@ void OnStopAuthority() { foreach (NetworkBehaviour comp in NetworkBehaviours) { + // an exception in OnStopAuthority should be caught, so that one + // component's exception doesn't stop all other components from + // being initialized try { comp.OnStopAuthority();