removeChild method

void removeChild(
  1. DFSprite sprite
)

移除子精灵

Implementation

void removeChild(DFSprite sprite) {
  sprite.parent = null;
  sprite.visible = false;
  sprite.recyclable = true;
}