UnityEngine.Networking.NetworkManager.Shutdown C# (CSharp) Method

Shutdown() public static method

Shuts down the NetworkManager completely and destroy the singleton.

public static Shutdown ( ) : void
return void
        public static void Shutdown()
        {
            if (singleton != null)
            {
                s_StartPositions.Clear();
                s_StartPositionIndex = 0;
                s_ClientReadyConnection = null;
                singleton.StopHost();
                singleton = null;
            }
        }