예제 #1
0
    protected override JobHandle OnUpdate(JobHandle inputDependencies)
    {
        var job = new RotationSystemJob();

        job.deltaTime = UnityEngine.Time.deltaTime;

        return(job.Schedule(this, inputDependencies));
    }
예제 #2
0
        // =============================================================================================================
        /// <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);
        }