public static bool Destruct() { if (IsInit) { SNetServerProcess.StopProcess(); ServerSocket.Close(); ServerSocket = null; IsInit = false; IsServer = true; Debug.Log("Server is close!"); return(true); } return(false); }
public static void StartUp() { SNetServerProcess.StartProcess(); Debug.Log("Server running!"); }