We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb71ede commit cf3576cCopy full SHA for cf3576c
MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs
@@ -181,7 +181,7 @@ public virtual void OnSetLocalVisibility(bool visible)
181
182
private void CacheAttributedMethods()
183
{
184
- if (NetworkingManager.singleton.NetworkConfig.AttributeMessageMode == AttributeMessageMode.Disabled)
+ if (NetworkingManager.singleton.NetworkConfig != null && NetworkingManager.singleton.NetworkConfig.AttributeMessageMode == AttributeMessageMode.Disabled)
185
return;
186
187
MethodInfo[] methods = GetType().GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.FlattenHierarchy);
0 commit comments