Created
January 4, 2018 12:19
-
-
Save turbohermit/e60b37080983db3ee9cc00c90207ada9 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
[System.Serializable] | |
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; | |
} |
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
[CreateAssetMenu(fileName = "Dialogues", menuName = "Dialogue Database", order = 1)] | |
public class DialogueDatabaseFile : ScriptableObject | |
{ | |
public List<DialogueContainer> dialogues = new List<DialogueContainer>(); | |
} |
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
[System.Serializable] | |
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