Unity Typewriter effect for Text

Here is pretty simple Unity MonoBehaviour script that can be used to give Text typewriter effect with blinking cursor at the end.

In the middle there is commented line that can fix moving when typing if you use Align on Center option.