mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
fb349c78c6
* just formatting * * moved message stuff to new project * generated .gitignore from https://gitignore.io/api/unity,visualstudio * fixed build event for message project
19 lines
400 B
C#
19 lines
400 B
C#
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Messaging
|
|
{
|
|
public class WakeUpMessage : MessageBase
|
|
{
|
|
private bool _wakeUp = true;
|
|
|
|
public override void Deserialize(NetworkReader reader)
|
|
{
|
|
_wakeUp = reader.ReadBoolean();
|
|
}
|
|
|
|
public override void Serialize(NetworkWriter writer)
|
|
{
|
|
writer.Write(_wakeUp);
|
|
}
|
|
}
|
|
} |