protected void Start() { Application.runInBackground = true; Server = new RTSServer(RTSServer.PORT); Server.Start(); clients = Server.clients; ServerStartedEvent?.Invoke(); }
public override void OnStartServer() { Debug.LogFormat("OnStartServer: {0}", NetworkServer.serverHostId); base.OnStartServer(); ServerStarted.Invoke(NetworkServer.serverHostId); }