Cyber/Assets/Scripts/Networking/Messages/TextMessage.cs
2017-05-08 03:59:42 +03:00

23 lines
428 B
C#

using UnityEngine.Networking;
public class TextMessage : MessageBase {
public string Message;
public TextMessage(string message) {
this.Message = message;
}
public TextMessage() {
}
public override void Deserialize(NetworkReader reader) {
Message = reader.ReadString();
}
public override void Serialize(NetworkWriter writer) {
writer.Write(Message);
}
}