Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
- switch indexPath.item {
- case 7:
- switch boatTypeSelectedText {
- case "Royal Boat":
- if definitionSelectedText == "Used to carry the pharoah" {
- if let cell = collectionView.cellForItemAtIndexPath(indexPath) {
- cell.backgroundColor = UIColor.greenColor()
- }
- } else {
- self.performSegueWithIdentifier("Game End", sender: self)
- gameOutcomeLabel.text = "You Lost on level (selectLevelBoatMatchingGame.currentLevel)!"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement