Beispiel #1
0
        public static Dictionary <string, DialogueEntry> GenerateDialogueMappings(DialogueData inData)
        {
            var mappings = new Dictionary <string, DialogueEntry>();

            foreach (var dialogueEntry in inData.DialogueEntries)
            {
                mappings.Add(dialogueEntry.DialogueEntryKey, dialogueEntry);
            }
            return(mappings);
        }
Beispiel #2
0
 private void InitialiseChatterData()
 {
     if (ChatterData != null)
     {
         _chatterEntries = DialogueData.GenerateDialogueMappings(ChatterData);
     }
     else
     {
         Debug.LogWarning("Dialogue Chatter data should probably be set for " + gameObject.name);
     }
 }