Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DialogueScene
- {
- var label : String;
- var pieces : DialoguePiece[];
- }
- class DialoguePiece
- {
- var label : String;
- var text : String;
- @HideInInspector()
- var character : String;
- }
- class QuestionDialogue extends DialoguePiece
- {
- var questions : String[];
- function QuestionDialogue(newLabel : String, newText : String, newQuestions : String[])
- {
- label = newLabel;
- text = newText;
- questions = newQuestions;
- }
- }
- class DialogueSeries extends DialoguePiece
- {
- var nextItem : int; // what is the next item?
- }
- // TextLines is an array of String Arrays. Essentially a 2D String Array.
- class TextLines
- {
- var lines : String[];
- }
- var textAsset : TextAsset[];
- var dialoguePieces : DialogueScene[];
- function Start()
- {
- var totalLength = 0;
- //...
Add Comment
Please, Sign In to add comment