protected override JobHandle OnUpdate(JobHandle inputDeps) { EnemyMovementJob job = new EnemyMovementJob { pointBuffer = GetBufferFromEntity <TargetPointBuffer>(true), DeltaTime = Time.deltaTime }; return(job.Schedule(this, inputDeps)); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { if (ECSWorld.Instance) { var job = new EnemyMovementJob() { Rect = ECSWorld.Instance.cornerRect, DeltaTime = Time.deltaTime }; return(job.Schedule(this, inputDeps)); } else { return(inputDeps); } }