Update NetworkManager.cs (#376)

Make "Multiple NetworkManagers detected" a full time error not hidden by log filter.
This commit is contained in:
Chris Langsenkamp 2019-02-06 09:30:16 -05:00 committed by vis2k
parent 0e781424d5
commit 5e642af577

View File

@ -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;
}