// local case public override void OnStartLocalClient(GameServer server) { base.OnStartLocalClient(server); instance = this; this.turtleServer = (TurtleServer)server; }
protected override void OnStartServer() { base.OnStartServer(); instance = this; match = new TurtleMatch(); match.CreateFromSpawnPoints( numRoles, mode == Mode.OfflineMode ? offlineTurtlePrefab : onlineTurtlePrefab, FindObjectsOfType <SpawnPoint>() ); }