//是否在屏幕外 public bool objIsOut(float x, float y, float w, float h) { return(!GameCommon.isCollisionWithRect( gameMapRect.x, gameMapRect.y, gameMapRect.width, gameMapRect.height, x, y, w, h)); }