Ejemplo n.º 1
0
            public static void HandleAssignPawn(int connectionID, byte[] data)
            {
                ByteBuffer buffer = new ByteBuffer();

                buffer.WriteBytes(data);
                int packetID     = buffer.ReadInteger();
                int ID_Character = buffer.ReadInteger();
                int handlerID    = buffer.ReadInteger();

                buffer.Dispose();

                //Debug.Log("Player : '{0}' - position : '{1}''{2}''{3}' ", connectionID, pos_x, pos_y, pos_z);

                buffer = new ByteBuffer();
                buffer.WriteInteger(ID_Character);
                buffer.WriteInteger(handlerID);
                ClientManager.AssignPawn(connectionID, buffer.ToArray());
                buffer.Dispose();
            }