private void GenerateTiles()
{
for(int i = 0; i < _tilesCount; i++)
{
if(i == 0)
{
_currentTile = Instantiate(_startTile, _parent);
}
else
{
var randomTile = _tiles[Random.Range(0, _tiles.Length)];
_currentTile = Instantiate(randomTile, _currentTile.EndPoint.position - randomTile.StartPoint.localPosition, Quaternion.identity, _parent);
}
}
}