Ejemplo n.º 1
0
 void OnLineFeedComplete()
 {
     // Run through the text lines to shift all the contents.
     for (int i = 0; i < textLines.Count - 1; ++i)
     {
         KaraokeTextLine copyTarget = textLines[i + 1];
         textLines[i].SetTextState(copyTarget.baseText.text, copyTarget.maskRectTrans.rect.width, copyTarget.TextPos);
     }
 }
Ejemplo n.º 2
0
        void OnLyricEvent(KoreographyEvent koreoEvt, int sampleTime, int sampleDelta, DeltaSlice slice)
        {
            string lyric = koreoEvt.GetTextValue();

            float percent = koreoEvt.GetEventDeltaAtSampleTime(sampleTime);

            for (int i = 0; i < textLines.Count; ++i)
            {
                KaraokeTextLine curLine = textLines[i];
                if (!curLine.IsLineFull())
                {
                    curLine.FillKaraokeSection(lyric, percent);
                    break;
                }
            }
        }