Exemple #1
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            MoveCloudsJob moveJob = new MoveCloudsJob()
            {
                Positions = m_CellGroup.Position,
                Deltas    = m_CellGroup.CloudStep //,
                                                  //existing_cells = existing_cells
            };

            var deps = moveJob.Schedule(m_CellGroup.Length, 64, inputDeps);

            deps.Complete();

            return(deps);
        }
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            MoveCloudsJob moveJob = new MoveCloudsJob()
            {
                Positions = markersGroup.Position,
                Deltas    = markersGroup.AgentStep,
                Goal      = markersGroup.Goal
            };

            var deps = moveJob.Schedule(markersGroup.Length, Settings.BatchSize, inputDeps);

            deps.Complete();

            return(deps);
        }