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