Example #1
0
    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));
        }
    }
Example #2
0
 void Update()
 {
     PlayerControllers.ForEach(it => it.SetCurrentBeat(CurrentBeat));
 }
Example #3
0
 void Update()
 {
     timeOfLastMeasuredPositionInSongInMillis += Time.deltaTime * 1000.0f;
     PlayerControllers.ForEach(it => it.SetPositionInSongInMillis(PositionInSongInMillis));
 }