mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
add comments
This commit is contained in:
parent
85aae6482d
commit
e87c1d6a26
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user