mirror of https://github.com/axmolengine/axmol.git
reset explosion and fix bug of event handler
This commit is contained in:
parent
8b3e116ed6
commit
dced8004e1
|
@ -80,7 +80,7 @@ void PUDoPlacementParticleEventHandler::handle (PUParticleSystem3D* particleSyst
|
|||
auto children = parentSystem->getChildren();
|
||||
for(auto iter : children)
|
||||
{
|
||||
PUParticleSystem3D *child = static_cast<PUParticleSystem3D *>(iter);
|
||||
PUParticleSystem3D *child = dynamic_cast<PUParticleSystem3D *>(iter);
|
||||
if (child){
|
||||
system = child;
|
||||
emitter = system->getEmitter(_forceEmitterName);
|
||||
|
|
|
@ -156,4 +156,4 @@ system explosionSystem
|
|||
on_time greater_than 0.3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue