Ejemplo n.º 1
0
 private void Awake()
 {
     Instance      = this;
     textUIManager = new TextUIManager(gameObject.GetComponentInChildren <GroupTextUI>());
     string[] tempData = TextAssetTool.ReadTextAssetData("Text/sampleDialogue");
     foreach (string data in tempData)
     {
         string[] seperatedData = data.Split('-');
         foreach (string datak in seperatedData)
         {
             Debug.Log(datak);
         }
         if (seperatedData.Length == 3)
         {
             DialogueData dialogueData = new DialogueData(seperatedData[0], TextAssetTool.ConvertNumberStringToInt(seperatedData[1], ':'), seperatedData[2].Split(';'));
             AddEventTextToDatabase(dialogueData.GetDialogueKey(), dialogueData);
             Debug.LogWarning(string.Format("The key {0} is added", dialogueData.GetDialogueKey()));
         }
         else
         {
             Debug.LogError("GO F**K URSELF");
         }
     }
     Debug.LogWarning("TextDataManager initialized");
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     Instance = this;
     wordData = TextAssetTool.ReadTextAssetData("Word/english");
     if (wordData.Length > 0)
     {
         Debug.LogWarning("wordData has been initialized with " + wordData.Length + "words!");
     }
 }