Ejemplo n.º 1
0
        private NetGameObjectData(ByteBuffer buffer)
        {
            using (SafeUnwrapByteBuffer.Get(buffer, this.GetError))
            {
                this.gameObjectInstanceID = buffer.ReadInt32();
                this.tag      = buffer.ReadUnicodeString();
                this.layer    = buffer.ReadInt32();
                this.isStatic = buffer.ReadBoolean();

                int length = buffer.ReadInt32();

                this.components = new NetComponent[length];

                for (int i = 0; i < length; i++)
                {
                    try
                    {
                        this.components[i] = NetComponent.Deserialize(buffer);
                    }
                    catch (Exception ex)
                    {
                        InternalNGDebug.LogException("GameObject failed on Component " + (i + 1) + "/" + length + ".", ex);
                        throw;
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public override void    In(ByteBuffer buffer)
 {
     if (this.InResponseStatus(buffer) == true)
     {
         this.gameObjectInstanceID = buffer.ReadInt32();
         this.component            = NetComponent.Deserialize(buffer);
     }
 }
Ejemplo n.º 3
0
 public override void    In(ByteBuffer buffer)
 {
     this.networkId            = buffer.ReadInt32();
     this.gameObjectInstanceID = buffer.ReadInt32();
     this.component            = NetComponent.Deserialize(buffer);
 }