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; } } } }
public override void In(ByteBuffer buffer) { if (this.InResponseStatus(buffer) == true) { this.gameObjectInstanceID = buffer.ReadInt32(); this.component = NetComponent.Deserialize(buffer); } }
public override void In(ByteBuffer buffer) { this.networkId = buffer.ReadInt32(); this.gameObjectInstanceID = buffer.ReadInt32(); this.component = NetComponent.Deserialize(buffer); }