コード例 #1
0
        protected override int Prepare(ref ObstacleOrientationJob job, float delta)
        {
            if (!TryGetFirstInGroup(out m_obstaclesProvider, true))
            {
                throw new System.Exception("No IObstacleProvider or IObstacleSplitProvider in chain !");
            }

            job.m_recompute          = m_obstaclesProvider.recompute;
            job.m_inputObstacleInfos = m_obstaclesProvider.outputObstacleInfos;
            job.m_referenceObstacles = m_obstaclesProvider.referenceObstacles;
            job.m_inputObstacles     = m_obstaclesProvider.outputObstacles;

            return(m_obstaclesProvider.outputObstacles.Length);
        }
コード例 #2
0
 protected override void Apply(ref ObstacleOrientationJob job)
 {
 }