| 718 | } |
| 719 | |
| 720 | ParticleSystem::~ParticleSystem() |
| 721 | { |
| 722 | // Since the scheduler retains the "target (in this case the ParticleSystem) |
| 723 | // it is not needed to call "unscheduleUpdate" here. In fact, it will be called in "cleanup" |
| 724 | // unscheduleUpdate(); |
| 725 | _particleData.release(); |
| 726 | _animations.clear(); |
| 727 | AX_SAFE_RELEASE(_texture); |
| 728 | } |
| 729 | |
| 730 | void ParticleSystem::addParticles(int count, int animationIndex, int animationCellIndex) |
| 731 | { |