private static void UpdateLastTransform(ref TransformInternal.Component lastTransform,
                                                TransformInternal.Update update)
        {
            if (update.Location.HasValue)
            {
                lastTransform.Location = update.Location.Value;
            }

            if (update.Rotation.HasValue)
            {
                lastTransform.Rotation = update.Rotation.Value;
            }

            if (update.Velocity.HasValue)
            {
                lastTransform.Velocity = update.Velocity.Value;
            }

            if (update.TicksPerSecond.HasValue)
            {
                lastTransform.TicksPerSecond = update.TicksPerSecond.Value;
            }

            if (update.PhysicsTick.HasValue)
            {
                lastTransform.PhysicsTick = update.PhysicsTick.Value;
            }
        }
        public void SendUpdate(TransformInternal.Update update)
        {
            var component = EntityManager.GetComponentData <TransformInternal.Component>(Entity);

            if (update.Location.HasValue)
            {
                component.Location = update.Location.Value;
            }

            if (update.Rotation.HasValue)
            {
                component.Rotation = update.Rotation.Value;
            }

            if (update.Velocity.HasValue)
            {
                component.Velocity = update.Velocity.Value;
            }

            if (update.PhysicsTick.HasValue)
            {
                component.PhysicsTick = update.PhysicsTick.Value;
            }

            if (update.TicksPerSecond.HasValue)
            {
                component.TicksPerSecond = update.TicksPerSecond.Value;
            }

            EntityManager.SetComponentData(Entity, component);
        }