add comments

This commit is contained in:
vis2k 2020-02-27 10:08:36 +01:00
parent 85aae6482d
commit e87c1d6a26

View File

@ -584,6 +584,9 @@ internal void OnStartAuthority()
{ {
foreach (NetworkBehaviour comp in NetworkBehaviours) 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 try
{ {
comp.OnStartAuthority(); comp.OnStartAuthority();
@ -599,6 +602,9 @@ void OnStopAuthority()
{ {
foreach (NetworkBehaviour comp in NetworkBehaviours) 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 try
{ {
comp.OnStopAuthority(); comp.OnStopAuthority();