23 lines
521 B
Lua
23 lines
521 B
Lua
---@type LuaGameModeBase
|
|
local M = UnLua.Class()
|
|
|
|
local Log = require("Framework.Log")
|
|
|
|
function M:ReceiveBeginPlay()
|
|
Log.Info("LuaGameMode:ReceiveBeginPlay() - Demo scene started")
|
|
UE.UKismetSystemLibrary.PrintString(
|
|
self,
|
|
"[UnLua Demo] LuaGameMode initialized!",
|
|
true,
|
|
true,
|
|
UE.FLinearColor(0.3, 0.85, 1.0, 1.0),
|
|
5.0
|
|
)
|
|
end
|
|
|
|
function M:ReceiveEndPlay(EndPlayReason)
|
|
Log.Info("LuaGameMode:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
|
end
|
|
|
|
return M
|