mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-22 07:14:19 +00:00
16 lines
318 B
C#
16 lines
318 B
C#
|
using UnityEngine;
|
||
|
using System.Collections.Generic;
|
||
|
using Mirror;
|
||
|
|
||
|
public class ServerMainController : MonoBehaviour
|
||
|
{
|
||
|
public const int MAX_CONNECTIONS = 32;
|
||
|
|
||
|
public bool isListening = false;
|
||
|
|
||
|
public void ServerStart() {
|
||
|
NetworkServer.Listen(MAX_CONNECTIONS);
|
||
|
isListening = true;
|
||
|
}
|
||
|
}
|