protected override void OnUpdate() { Entities.ForEach(( ref MovementTracking movementTracking, in Translation translation, in Rotation rotation) => { MovementTracking.UpdateState(ref movementTracking, translation.Value, rotation.Value); }).ScheduleParallel();
/// <summary> /// Called at the frame when the user has selected a color. /// </summary> /// <param name="isRight"></param> /// <returns></returns> public bool colorSelected(bool isRight, string gameObjectName, int difficulty) { float timeDelta = Time.time - timeAtTaskStart; if (isRight) { numCorrect++; } else { numIncorrect++; } logPerformance(isRight, timeDelta, gameObjectName, difficulty); MovementTracking.TrackHeadAndController(LifetimeTaskIndex); return(isRight); }