void SnapToGrid( exTileMap _tileMap, Vector2 _pos, out int _x, out int _y ) { _x = Mathf.FloorToInt(_pos.x / _tileMap.tileWidth) * _tileMap.tileWidth; _y = Mathf.FloorToInt(_pos.y / _tileMap.tileHeight) * _tileMap.tileHeight; }