Skip to content

Commit

Permalink
Merge branch 'feature/lua-overrides' into support/lua-overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyanghuang-tencent committed Mar 20, 2023
2 parents 766515d + e74fb8c commit e3073fa
Show file tree
Hide file tree
Showing 20 changed files with 899 additions and 287 deletions.
3 changes: 3 additions & 0 deletions Content/Script/Tests/Regression/Issue595/Issue595Object.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local M = UnLua.Class()

return M
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local M = UnLua.Class()

function M:ReceiveBeginPlay()
print("self=", self, self:GetName())
print("self.Overridden=", self.Overridden)
print("self.Overridden.ReceiveBeginPlay=", self.Overridden.ReceiveBeginPlay)
print("self.ReceiveBeginPlay=", self.ReceiveBeginPlay)
self.Overridden.ReceiveBeginPlay(self)
print("Hello in Lua")
self:IncreaseCounter()
end

function M:IncreaseCounter()
_G.Counter = _G.Counter or 0
_G.Counter = _G.Counter + 1
end

return M
Loading

0 comments on commit e3073fa

Please sign in to comment.