| 785 | } |
| 786 | |
| 787 | void GameObject::removeFromGameLayer() |
| 788 | { |
| 789 | setActive(false); |
| 790 | |
| 791 | for (auto sprite : _childSprites) |
| 792 | { |
| 793 | if (sprite->getBlendFunc() != getBlendFunc()) |
| 794 | { |
| 795 | AX_SAFE_RETAIN(sprite); |
| 796 | sprite->removeFromParentAndCleanup(true); |
| 797 | /*addChild(sprite); |
| 798 | AX_SAFE_RELEASE(sprite);*/ |
| 799 | } |
| 800 | } |
| 801 | |
| 802 | AX_SAFE_RETAIN(this); |
| 803 | if (_particle) |
| 804 | { |
| 805 | AX_SAFE_RETAIN(_particle); |
| 806 | _particle->removeFromParentAndCleanup(true); |
| 807 | } |
| 808 | if (_glowSprite) |
| 809 | { |
| 810 | AX_SAFE_RETAIN(_glowSprite); |
| 811 | _glowSprite->removeFromParentAndCleanup(true); |
| 812 | } |
| 813 | |
| 814 | removeFromParentAndCleanup(true); |
| 815 | } |
| 816 | |
| 817 | void GameObject::updateTweenAction(float value, std::string_view key) |
| 818 | { |
no outgoing calls
no test coverage detected