Roman 787b285227 任务:新建项目 导入必要的插件
1.导入URP
2.配置了URP
3.导入Dotween
4.导入Odin
5.导入了InputSystem
6.设置项目为新旧输入系统并用
7.导入了FunGus
8.创建了一些空文件夹

我是每日提醒上班小助手,今天你上班了吗?😺
2022-03-10 22:49:14 +08:00

50 lines
1.7 KiB
Plaintext

-- This Lua script defines a module which can be imported in any Lua script using:
-- local junglestory = require('junglestory')
-- You can then call any function on the module, e.g. junglestory.start()
-- In FungusLua, module files must be contained in a Resources/Lua folder somewhere in your project.
-- Lua modules are typically declared using an empty table called M.
-- All members of the module must have the M. prefix, and the M table is returned at the end of the script.
-- N.B. If you want to reference another function in the module, you must use the M.prefix.
M = {}
function M.start()
runblock(flowchart, "Intro") -- Runs the Intro Block on the flowchart
setcharacter(sherlockcharacter, "annoyed") -- Sets the speaking character and portrait
say "Hello John."
setcharacter(johncharacter, "eyeroll")
say "Hello Sherlock."
say "We appear to be in a tropical rain forest."
wait(1)
say "Again."
runblock(flowchart, "ZoomIn", 0, true) -- Runs the ZoomIn Block, but doesn't wait for it to finish
say "While we're here, I suggest we fill our canteens from this waterfall."
-- Show multiple options to the player
-- Note the last option is disabled but not selectable because of the ~ character.
local choice = choose { "Agreed", "No, we don't have time", "~Not interested" }
if choice == 1 then
runblock(flowchart, "PlayPourSound")
setcharacter(sherlockcharacter, "annoyed")
say "There, that's better"
elseif choice == 2 then
setcharacter(sherlockcharacter, "annoyed")
say "Let's get moving"
end
setcharacter(sherlockcharacter, "annoyed")
say("There must be some way out of this cursed place.")
end
return M