protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new TranslateJob { MinusDirection = true, DeltaTime = Time.DeltaTime }; return(job.Schedule(this, inputDeps)); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var tranArchetype = this.GetArchetypeChunkComponentType <Translation>(); var dropArachetype = this.GetArchetypeChunkComponentType <IJobChunk_DropData>(); TranslateJob translateJob = new TranslateJob() { deltaTime = Time.deltaTime, minHeight = -70, archetypeTranslation = tranArchetype, archetypeDropData = dropArachetype, delay = UnityEngine.Random.Range(1, 10), velocity = UnityEngine.Random.Range(1, 10), }; //Debug.Log("---===="+ translateJob.velocity); JobHandle outputDeps = translateJob.Schedule(entityQuery, inputDeps); return(outputDeps); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new TranslateJob(); return(job.Schedule(this, inputDeps)); }