Set the maximum amount of connections/players allowed.
function StartGameNow() {
// Don't allow any more players
Network.maxConnections = -1;
}
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void StartGameNow() { Network.maxConnections = -1; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def StartGameNow() as void: Network.maxConnections = (-1)