NetworkIdentity.OnStartClient: added comment

This commit is contained in:
vis2k 2020-02-27 09:53:18 +01:00
parent 53499f031f
commit 617bd0a175

View File

@ -556,6 +556,9 @@ internal void OnStartClient()
if (LogFilter.Debug) Debug.Log("OnStartClient " + gameObject + " netId:" + netId); if (LogFilter.Debug) Debug.Log("OnStartClient " + gameObject + " netId:" + netId);
foreach (NetworkBehaviour comp in NetworkBehaviours) foreach (NetworkBehaviour comp in NetworkBehaviours)
{ {
// an exception in OnStartClient should be caught, so that one
// component's exception doesn't stop all other components from
// being initialized
try try
{ {
comp.OnStartClient(); // user implemented startup comp.OnStartClient(); // user implemented startup