KaiClavier

STMAutoPauseFullTemp.cs

Sep 17th, 2020
29
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×