Created
April 8, 2016 12:11
-
-
Save yamanyar/c8a0d39a634528727f89b90f35bcc2ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_dictionary = new TstDictionary (); | |
TextAsset text = null; | |
float t = Time.realtimeSinceStartup; | |
try { | |
text = Resources.Load ("z") as TextAsset; | |
using (var reader = new StringReader (text.text)) { | |
string key; | |
while ((key = reader.ReadLine ()) != null) { | |
key = key.Trim (); | |
_dictionary.Add (key, null); | |
} | |
} | |
} finally { | |
if (text != null) | |
Resources.UnloadAsset (text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment