Exemple #1
0
    public static void JoinServer()
    {
        //Currently only joining local host
        client = new NetManager(listener);
        client.Start();
        client.Connect("127.0.0.1", 3213, "");
        IsConnected = true;
        JoinEvent join = new JoinEvent();

        join.value = "Hi jerry, this is your captain speaking.";
        Networker.AddPacket(join);

        IsServer = false;
    }