Advertisement
uglenXD

architectTesting.cs

Apr 22nd, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using TMPro;
  6.  
  7. public class architectTesting : MonoBehaviour
  8. {
  9.  
  10.     public TextMeshProUGUI tmprotext;
  11.  
  12.     [TextArea(5, 10)]
  13.     public string say;
  14.     public int charactersPerFrame = 1;
  15.     public float speed = 1f;
  16.  
  17.     // Use this for initialization
  18.     void Start()
  19.     {
  20.         new TextArchitect(tmprotext, say, "", charactersPerFrame, speed);
  21.     }
  22.  
  23.     // Update is called once per frame
  24.     void Update()
  25.     {
  26.         if (Input.GetKeyDown(KeyCode.Space))
  27.         {
  28.             new TextArchitect(tmprotext, say, "", charactersPerFrame, speed);
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement