Exemplo n.º 1
0
 /// <summary>
 /// LateUpdate is called every frame, if the Behaviour is enabled.
 /// It is called after all Update functions have been called.
 /// </summary>
 void LateUpdate()
 {
     DanmakuCollider.RebuildSpatialHashes();
     UpdateHandle = default(JobHandle);
     foreach (var group in RendererGroups.Values)
     {
         UpdateHandle = JobHandle.CombineDependencies(UpdateHandle, group.StartUpdate());
         JobHandle.ScheduleBatchedJobs();
     }
 }