Browse Source

Example of embedding a global Lua variable in a conversation.

master
Christopher 9 years ago
parent
commit
07c6f7bc8a
  1. 11
      Assets/FungusExamples/Conversation/Conversation.unity

11
Assets/FungusExamples/Conversation/Conversation.unity

@ -907,7 +907,7 @@ MonoBehaviour:
height: 859 height: 859
selectedBlock: {fileID: 1755499608} selectedBlock: {fileID: 1755499608}
selectedCommands: selectedCommands:
- {fileID: 1755499607} - {fileID: 1755499611}
variables: [] variables: []
description: description:
stepPause: 0 stepPause: 0
@ -1023,13 +1023,18 @@ MonoBehaviour:
indentLevel: 0 indentLevel: 0
luaEnvironment: {fileID: 0} luaEnvironment: {fileID: 0}
luaFile: {fileID: 0} luaFile: {fileID: 0}
luaScript: 'conversation [[ luaScript: '-- Gobal variables can be embedded using the {$VarName} syntax.
adjective = "riveting"
conversation [[
sherlock excited: AHA! So that''s how you do a conversation from Lua! sherlock excited: AHA! So that''s how you do a conversation from Lua!
Fascinating. Fascinating.
john bored left: Yes, riveting. john bored left: Yes, {$adjective}.
john hide: john hide:

Loading…
Cancel
Save