public override bool hittest(Vector2 vec)
{
Vector2 newVec = transformInTreeInverted.transformVector(vec);
//Debug.Log(newVec);
if(!_boundRectInTree.Contains(vec)){
return false;
}
if(_textureSelfRect.width!=0 && _textureSelfRect.height!=0 && _textureRenderRect.Contains(newVec)){
return true;
}
bool isHit = false;
DisplayObject child;
for(int i=_childList.Count-1;i>=0;i--){
child = _childList[i] as DisplayObject;
if(child.hittest(vec)){
isHit = true;
break;
}
}
return isHit;
}