Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UdpKit;
- using Bolt;
- public class test : IProtocolToken
- {
- public string username;
- public test(string username)
- {
- this.username = username;
- }
- public test()
- {
- this.username = "";
- }
- public void Write(UdpPacket packet)
- {
- packet.WriteString(username);
- }
- public void Read(UdpPacket packet)
- {
- username = packet.ReadString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement