Exemple #1
0
 public static void connectIP(string ip, int port, string password)
 {
     NetworkEvents.triggerOnConnecting();
     if (Network.Connect(ip, port, password).ToString().ToLower() != "noerror")
     {
         NetworkTools.disconnect();
         NetworkEvents.triggerOnFailed(0);
     }
 }
Exemple #2
0
 public static void connectGUID(string guid, string password)
 {
     NetworkEvents.triggerOnConnecting();
     if (Network.Connect(guid, password).ToString().ToLower() != "noerror")
     {
         NetworkTools.disconnect();
         NetworkEvents.triggerOnFailed(0);
     }
 }