示例#1
0
 public void StartHostingSelected()
 {
     if (!string.IsNullOrEmpty(IPInput.text) &&
         !string.IsNullOrEmpty(PortInput.text))
     {
         Server.Host(IPInput.text, ushort.Parse(PortInput.text), MatchNameInput.text);
         StartHostingButton.enabled = false;
     }
 }