Esempio n. 1
0
    public static void SendChat(byte channel, string say)
    {
        //chat
        Debug.LogWarning("SendChat :" + channel.ToString() + say);
        WorldPack pkChat = new WorldPack();

        pkChat.W((UInt16)1002);
        pkChat.W(channel);
        pkChat.W(say);
        Net.s_gcSocket.gcOutPacket(pkChat, false);
    }
Esempio n. 2
0
    public void OnConnect(bool bSucc)
    {
        Debug.Log("gc=>>>]OnConnect" + bSucc.ToString());
        //login
        WorldPack pk = new WorldPack();

        pk.W((short)1001);
        pk.W(loginInfo.accout);
        pk.W(loginInfo.pwd);
        pk.W((byte)95);
        Net.s_gcSocket.gcOutPacket(pk, false);
    }