Instantly share code, notes, and snippets.

What would you like to do?
public class DialogueContainer : ScriptableObject
//Unique ID used as ref
public string ID;
//All variants of the text to display
public string contentText;
//The response options
public List<DialogueOptionContainer> responseOptions;
//The tags this dialogue uses
public List<string> tags;
[CreateAssetMenu(fileName = "Dialogues", menuName = "Dialogue Database", order = 1)]
public class DialogueDatabaseFile : ScriptableObject
public List<DialogueContainer> dialogues = new List<DialogueContainer>();
public struct DialogueOptionContainer
//Text to display as line
public string optionText;
//The reference to what DialogueContainer the dialogue goes when chosen
public DialogueContainer optionRef;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment