Exemplo n.º 1
0
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         if (m_textGenerator.LettersIdle() && m_textProgress < m_fancyTextBlocks.Count)
         {
             m_textGenerator.ForceStateLetters(FancyTextAnimation.Type.Exit);
             m_textGenerator.RemoveParagraphs();
             m_textGenerator.Generate(m_fancyTextBlocks[m_textProgress++]);
         }
         else
         {
             m_textGenerator.ForceStateLetters(FancyTextAnimation.Type.Idle);
         }
     }
 }