public DOBounds2D GetLocalArea() { DOBounds2D local = new DOBounds2D(); local.right = _area.right; local.left = -_area.left; local.bottom = -_area.bottom; local.top = _area.top; return(local); }
public DOBounds2D GetWorldArea() { DOBounds2D world = new DOBounds2D(); world.left = this.transform.position.x - _area.left; world.right = this.transform.position.x + _area.right; world.top = this.transform.position.y + _area.top; world.bottom = this.transform.position.y - _area.bottom; return(world); }