void Update() { PlayerControllers.ForEach(it => it.SetCurrentBeat(CurrentBeat)); // TODO: Updating the pitch detection (including the dummy singers) for this frame must come after updating the current sentence. // Otherwise, a pitch event may be fired for a beat of the "previous" sentence where no note is expected, // afterwards the sentence changes (the note is expected now), but the pitch event is lost. if (Application.isEditor) { DummySingers.ForEach(it => it.UpdateSinging(CurrentBeat)); } }
void Update() { PlayerControllers.ForEach(it => it.SetCurrentBeat(CurrentBeat)); }
void Update() { timeOfLastMeasuredPositionInSongInMillis += Time.deltaTime * 1000.0f; PlayerControllers.ForEach(it => it.SetPositionInSongInMillis(PositionInSongInMillis)); }