feat: add L_LuaDemo scene and verify UnLua Tick, input, and hot-reload

This commit is contained in:
szy73711 committed 2026-11-28 15:48:35 +08:00
1 parent 943af16954
commit 256a60ac80
13 files changed
+670 -18

No files matched your search

+13 -1
View File
@@ -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)