Guest User

Untitled

a guest
Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. class DialogueScene
  3. {
  4. var label : String;
  5. var pieces : DialoguePiece[];
  6. }
  7.  
  8. class DialoguePiece
  9. {
  10. var label : String;
  11. var text : String;
  12.  
  13. @HideInInspector()
  14. var character : String;
  15. }
  16.  
  17. class QuestionDialogue extends DialoguePiece
  18. {
  19. var questions : String[];
  20.  
  21. function QuestionDialogue(newLabel : String, newText : String, newQuestions : String[])
  22. {
  23. label = newLabel;
  24. text = newText;
  25. questions = newQuestions;
  26. }
  27. }
  28.  
  29. class DialogueSeries extends DialoguePiece
  30. {
  31. var nextItem : int; // what is the next item?
  32. }
  33.  
  34. // TextLines is an array of String Arrays. Essentially a 2D String Array.
  35. class TextLines
  36. {
  37. var lines : String[];
  38. }
  39.  
  40. var textAsset : TextAsset[];
  41. var dialoguePieces : DialogueScene[];
  42.  
  43.  
  44. function Start()
  45. {
  46. var totalLength = 0;
  47.  
  48. //...
Add Comment
Please, Sign In to add comment