Exemplo n.º 1
0
 void Update()
 {
     if (_Transforms != null && _Handle.IsCompleted)
     {
         _Handle = SinusoidalTilesJob.Begin(_Params, _NativeTransforms);
     }
 }
Exemplo n.º 2
0
        public static JobHandle Begin(
            SinusoidalMasterParams master,
            TransformAccessArray transforms
            )
        {
            SinusoidalTilesJob job = new SinusoidalTilesJob()
            {
                time   = Time.realtimeSinceStartup,
                Params = master
            };

            return(IJobParallelForTransformExtensions.Schedule(job, transforms));
        }