| 238 | } |
| 239 | |
| 240 | void GameObject::createAndAddParticle(const char* path, int zOrder) |
| 241 | { |
| 242 | if (_particle) |
| 243 | { |
| 244 | AX_SAFE_RELEASE(_particle); |
| 245 | _particle->cleanup(); |
| 246 | _particle = nullptr; |
| 247 | } |
| 248 | |
| 249 | _hasParticle = true; |
| 250 | |
| 251 | _particle = ParticleSystemQuad::create(path); |
| 252 | _particle->setGlobalZOrder(zOrder); |
| 253 | _particle->retain(); |
| 254 | _particle->stopSystem(); |
| 255 | |
| 256 | _particle->setPositionType(ParticleSystem::PositionType::GROUPED); |
| 257 | _particle->setRotation(getRotation()); |
| 258 | _particle->start(); |
| 259 | } |
| 260 | |
| 261 | GameObject* GameObject::createObject(std::string_view frame, std::string_view glowFrame) |
| 262 | { |
nothing calls this directly
no test coverage detected