Created
November 30, 2020 03:30
-
-
Save larson-carter/e8fd20bf4f428ae93ded00725900075f to your computer and use it in GitHub Desktop.
Enemies Swift Class - Error bound
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Enemies.swift | |
// RPG GAME | |
// | |
// Created by Larson Carter on 11/27/20. | |
// | |
import UIKit | |
class Enemies: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view. | |
// print(Zeus().getName()) | |
// This is how you grab data from anotehr class in another swift file! | |
// PSEUDO CODE | |
// If this image is tapped, go to another UI CONTROLLER (Seque) | |
// When the new UI Controller is loaded fill in the information from the dedicated Enemy swift file | |
} | |
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
if segue.identifier == "Beep" { | |
var vc = segue.destination as! EnemyViewer | |
vc.Enemy = Beep | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment