Skip to content

Instantly share code, notes, and snippets.

@larson-carter
Created November 30, 2020 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larson-carter/e8fd20bf4f428ae93ded00725900075f to your computer and use it in GitHub Desktop.
Save larson-carter/e8fd20bf4f428ae93ded00725900075f to your computer and use it in GitHub Desktop.
Enemies Swift Class - Error bound
//
// 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