| 131 | } |
| 132 | |
| 133 | void ComponentLua::onExit() |
| 134 | { |
| 135 | if (_succeedLoadingScript && getLuaFunction(ComponentLua::ON_EXIT)) |
| 136 | { |
| 137 | getUserData(); |
| 138 | LuaEngine::getInstance()->getLuaStack()->executeFunction(1); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | bool ComponentLua::getLuaFunction(std::string_view functionName) |
| 143 | { |
nothing calls this directly
no test coverage detected