示例#1
0
文件: Group.java 项目: btdiehr/libgdx
 /**
  * Removes an actor from this group. If the actor will not be used again and has actions, they
  * should be {@link Actor#clearActions() cleared} so the actions will be returned to their {@link
  * Action#setPool(com.badlogic.gdx.utils.Pool) pool}, if any. This is not done automatically.
  */
 public boolean removeActor(Actor actor) {
   if (!children.removeValue(actor, true)) return false;
   Stage stage = getStage();
   if (stage != null) stage.unfocus(actor);
   actor.setParent(null);
   actor.setStage(null);
   childrenChanged();
   return true;
 }
示例#2
0
文件: Actor.java 项目: newisso/libgdx
 public boolean removeCaptureListener(EventListener listener) {
   return captureListeners.removeValue(listener, true);
 }