Exemplo n.º 1
0
        public override void Read(INetworkConnection connection, BinaryReader message)
        {
            CanvasGroupBroadcaster.ChangeType changeType = (CanvasGroupBroadcaster.ChangeType)message.ReadByte();

            if (CanvasGroupBroadcaster.HasFlag(changeType, CanvasGroupBroadcaster.ChangeType.Properties))
            {
                attachedComponent.alpha = message.ReadSingle();
                attachedComponent.ignoreParentGroups = message.ReadBoolean();
            }
        }
        public override void Read(SocketEndpoint sendingEndpoint, BinaryReader message)
        {
            CanvasGroupBroadcaster.ChangeType changeType = (CanvasGroupBroadcaster.ChangeType)message.ReadByte();

            if (CanvasGroupBroadcaster.HasFlag(changeType, CanvasGroupBroadcaster.ChangeType.Properties))
            {
                attachedComponent.alpha = message.ReadSingle();
                attachedComponent.ignoreParentGroups = message.ReadBoolean();
            }
        }