protected override JobHandle OnUpdate(JobHandle inputDependencies) { var job = new RotationSystemJob(); job.deltaTime = UnityEngine.Time.deltaTime; return(job.Schedule(this, inputDependencies)); }
// ============================================================================================================= /// <summary> /// This runs our jobs and reads in our input dependencies and return to us. /// </summary> /// <param name="inputDeps">Input dependencies</param> /// <returns></returns> protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new RotationSystemJob(); job.deltaTime = Time.deltaTime; var jobHandle = job.Schedule(this, inputDeps); return(jobHandle); }