Hi,
Here's the updated Lobby example:
LobbyExample_2017-08-12.unitypackage
EDIT: Updated:
Textline_LobbyExample_2018-02-26.unitypackage
To use it:
1. Download and import the latest
Textline package.
2. Make sure you've also imported
AutoSaveLoad and
Menu Framework.
3. From the Lobby Example folder, add the scene "0 Lobby" to build settings as scene 0. Add the scene "1 Gameplay" as scene 1.
Then play "0 Lobby" to get an idea of how it works.
The Lobby scene has buttons for 3 characters (Adam, Barbara, and Charlie). You can change these. When you set up a new button, use a Sequence Trigger that runs a Sequence like this:
Code: Select all
SetVariable(Conversation,Dave);
LoadLevel(1 Gameplay)
where "Dave" is the name of the conversation in the dialogue database. Look at the Adam Button for an example.
In the Gameplay scene, add a GameObject named "Dave" with a Conversation Trigger that starts the "Dave" conversation OnStart. Look at the Adam GameObject for an example. Then deactivate this GameObject.
Finally, add a Persistent Active Data component to the Activate Conversation GameObject, and configure it to activate the "Dave" GameObject if this condition is true:
Code: Select all
Variable["Conversation"] == "Dave"
Look at the Activate Conversation GameObject for examples for Adam, Barbara, and Charlie.