17 lines
628 B
Lua
17 lines
628 B
Lua
local UnLuaSubActor = require("Tests.Syntax.UnLuaSubActor")
|
|||
|
|
local UnLuaGrandChildActor = UnLua.Class("Tests.Syntax.UnLuaSubActor")
|
||
|
|
function UnLuaGrandChildActor.ReceiveBeginPlay(self)
|
||
|
|
UnLuaSubActor.ReceiveBeginPlay(self)
|
||
|
|
self.tier = 3
|
||
|
|
self.callTrace[#self.callTrace + 1] = "GrandChild.ReceiveBeginPlay"
|
||
|
|
end
|
||
|
|
function UnLuaGrandChildActor.ComputeBonus(self, baseVal, multiplier)
|
||
|
|
if multiplier == nil then
|
||
|
|
multiplier = 2
|
||
|
|
end
|
||
|
|
return UnLuaSubActor.ComputeBonus(self, baseVal, multiplier) + self.tier
|
||
|
|
end
|
||
|
|
function UnLuaGrandChildActor.GetTier(self)
|
||
|
|
return self.tier
|
||
|
|
end
|
||
|
|
return UnLuaGrandChildActor
|