We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在听完关于Lua Component的课程后,我尝试对同一个GO下挂载多个lua脚本,但是仅有的一个可以正常工作,是不是因为有这方面的限制?
The text was updated successfully, but these errors were encountered:
bool GObject::hasComponent(const std::string& compenent_type_name) const { // FIXME : cannot create two component of same type for (const auto& component : m_components) { if (component.getTypeName() == compenent_type_name) return true; } return false; }
是这个代码的问题,导致不能创建两个相同类型的component。不知道有什么设计方案避免这个问题。
Sorry, something went wrong.
是的,目前只支持挂载一个同类component
No branches or pull requests
在听完关于Lua Component的课程后,我尝试对同一个GO下挂载多个lua脚本,但是仅有的一个可以正常工作,是不是因为有这方面的限制?
The text was updated successfully, but these errors were encountered: