mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update NetworkManager.cs (#376)
Make "Multiple NetworkManagers detected" a full time error not hidden by log filter.
This commit is contained in:
parent
0e781424d5
commit
5e642af577
@ -102,7 +102,7 @@ void InitializeSingleton()
|
||||
{
|
||||
if (singleton != null)
|
||||
{
|
||||
if (LogFilter.Debug) { Debug.Log("Multiple NetworkManagers detected in the scene. Only one NetworkManager can exist at a time. The duplicate NetworkManager will not be used."); }
|
||||
Debug.LogError("Multiple NetworkManagers detected in the scene. Only one NetworkManager can exist at a time. The duplicate NetworkManager will not be used.");
|
||||
Destroy(gameObject);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user