public void Setup(IEntity entity) { var gameBoardEntity = EntityCollectionManager.GetEntitiesFor(_gameBoardGroup).First(); var gameBoardComponent = gameBoardEntity.GetComponent <GameBoardComponent>(); var viewComponent = entity.GetGameObject(); var randomlyPlacedComponent = entity.GetComponent <RandomlyPlacedComponent>(); var randomPosition = gameBoardComponent.OpenTiles.TakeRandom(); randomlyPlacedComponent.RandomPosition = randomPosition; viewComponent.transform.localPosition = randomPosition; gameBoardComponent.OpenTiles.Remove(randomPosition); }