protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            _buffer = _barrier.CreateCommandBuffer();
            var job = new ClearShootingJob()
            {
                CurrentTime         = Time.time,
                EntityCommandBuffer = _buffer,
            };

            inputDeps = job.Schedule(this, inputDeps);
            _barrier.AddJobHandleForProducer(inputDeps);
            return(inputDeps);
        }
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            if (!ECSWorld.Instance)
            {
                return(inputDeps);
            }
            var shootIntervalTime = 1f / ECSWorld.Instance.ShootSpeed;
            //Debug.Log("shootIntervalTime " + shootIntervalTime);
            var job = new ClearShootingJob()
            {
                ShootIntervalTime = shootIntervalTime,
                CurrentTime       = Time.time,
            };
            var jobHandle = job.Schedule(this, inputDeps);

            jobHandle.Complete();
            return(jobHandle);
        }