| 332 | } |
| 333 | |
| 334 | EffectGameObject* EffectGameObject::create(std::string_view frame) |
| 335 | { |
| 336 | auto pRet = new (std::nothrow) EffectGameObject(); |
| 337 | |
| 338 | if (pRet && pRet->init(frame)) |
| 339 | { |
| 340 | pRet->_bgl = BaseGameLayer::getInstance(); |
| 341 | // pRet->setVisible(false); |
| 342 | pRet->autorelease(); |
| 343 | return pRet; |
| 344 | } |
| 345 | AX_SAFE_DELETE(pRet); |
| 346 | return nullptr; |
| 347 | } |