protected override void OnUpdate()
        {
            var buffer = EquipmentBuffer.CreateCommandBuffer();

            buffer.RemoveComponent <Enabled>(DisablingQuery);
            buffer.RemoveComponent <Disabling>(DisablingQuery);
            buffer.AddComponent <Enabled>(EnablingQuery);
            buffer.RemoveComponent <Enabling>(EnablingQuery);
            EquipmentBuffer.AddJobHandleForProducer(Dependency);
        }
        protected override JobHandle OnUpdate(JobHandle inputDependencies)
        {
            var buffer = EquipmentBuffer.CreateCommandBuffer();

            buffer.RemoveComponent <Enabled>(DisablingQuery);
            buffer.RemoveComponent <Disabling>(DisablingQuery);
            buffer.AddComponent <Enabled>(EnablingQuery);
            buffer.RemoveComponent <Enabling>(EnablingQuery);

            return(inputDependencies);
        }