1
0
This repository has been archived on 2024-09-03. You can view files and clone it, but cannot push or open issues or pull requests.
System-Purge/Assets/Dusty Char/TextImporter.cs

22 lines
434 B
C#

using UnityEngine;
using System.Collections;
public class TextImporter : MonoBehaviour {
public TextAsset textfile; //A block of text that will be "put" into the box.
public string[] textLines; //An array of lines that will be put on screen line by line.
// Use this for initialization
void Start () {
if(textfile != null)
{
textLines = (textfile.text.Split('\n'));
}
}
}