KaiClavier

STMAutoPauseFullTemp.cs

Sep 17th, 2020
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. /*
  4. make sure your STM object's "verticalLimit" is set to "cutoff" for this to work right!
  5. */
  6.  
  7. public class STMAutoPauseTemp : MonoBehaviour
  8. {
  9.     public SuperTextMesh superTextMesh;
  10.    
  11.     public bool Continue()
  12.     {
  13.         if(superTextMesh.leftoverText.Length > 0)
  14.         {
  15.             superTextMesh.text = superTextMesh.leftoverText.TrimStart();
  16.             return true;
  17.         }
  18.         return false;
  19.     }
  20. }
  21.  
RAW Paste Data