Open liwei1024 opened 3 years ago
Can you try below.
auto result = state["game_data"]["task"]["test"](state["game_data"]["task"])
or
auto result = state.loadstring("return game_data.task:test()")()
If you do not need return data
state("game_data.task:test()")
For example, I have a piece of code in Lua that calls " game_data.task:test() "
How is the Kaguya called
I tried the “state [" game_data "] [" task "] [" test "] ()” and the “state [" game_data. Task: test "] ()”