feat: add L_LuaDemo scene and verify UnLua Tick, input, and hot-reload
This commit is contained in:
1 parent
943af16954
commit
256a60ac80
13 files changed
+670
-18
No files matched your search
@@ -2,9 +2,21 @@
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
local EventBus = require("Framework.EventBus")
|
||||
local HotReload = require("Framework.HotReload")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaPlayerController:ReceiveBeginPlay()")
|
||||
Log.Info("LuaPlayerController:ReceiveBeginPlay() - Ready for [Space]=Ping, [R]=HotReload")
|
||||
end
|
||||
|
||||
function M:OnDemoPingPressed()
|
||||
Log.Info("LuaPlayerController:OnDemoPingPressed() -> Emitting Demo.Ping")
|
||||
EventBus.Emit("Demo.Ping", "LuaPlayerController")
|
||||
end
|
||||
|
||||
function M:OnDemoHotReloadPressed()
|
||||
Log.Info("LuaPlayerController:OnDemoHotReloadPressed() -> Triggering HotReload.ReloadAll()")
|
||||
HotReload.ReloadAll()
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
|
||||
Reference in new issue
Block a user