Advertisement
shadowplaycoding

P015_TextAssetManager

Apr 29th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5.  
  6. public class TextAssetManager {
  7.  
  8.     public static List<string> TextToList(TextAsset textAsset)
  9.     {
  10.         List<string> textList = textAsset.text.Split("\n"[0]).ToList<string>();
  11.  
  12.         return textList;
  13.     }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement