コード例 #1
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        EnemyMovementJob job = new EnemyMovementJob
        {
            pointBuffer = GetBufferFromEntity <TargetPointBuffer>(true),
            DeltaTime   = Time.deltaTime
        };

        return(job.Schedule(this, inputDeps));
    }
コード例 #2
0
 protected override JobHandle OnUpdate(JobHandle inputDeps)
 {
     if (ECSWorld.Instance)
     {
         var job = new EnemyMovementJob()
         {
             Rect      = ECSWorld.Instance.cornerRect,
             DeltaTime = Time.deltaTime
         };
         return(job.Schedule(this, inputDeps));
     }
     else
     {
         return(inputDeps);
     }
 }