###Resources:
- Here is a good tutorial on how to use Unity for a dialog system.
- Scrolling effect: display one char at a time + time delay
-
Download the
dialog.unitypackage
and import into your (empty) unity project. Open the scenedialog.unity
-
Go to Edit --> Project settings --> Input and create a new input control with name "talk" and positive button = "left ctrl"
-
Launch. Press left ctrl to see dialogs.
###Main
Global variables:
scrollSpeed
:int
, how many characters per second, set to 10 currently
Implemented a line
class and Speak
function that will:
- display corresponding character name and dialog content;
- change the character texture to allow for different poses
###To do:
- may switch to use
GUI.Box
? - change brightness of out-of-focus character
- line should always center in the dialog box