* Refactor for Master of the Universe
This commit is contained in:
parent
e447a37757
commit
7e2b1b7a54
@ -13,7 +13,6 @@ class DefBoostSkillComponent: GKComponent{
|
||||
var skillButtonNode: SkillButtonNode
|
||||
|
||||
init(iconName: String, text: String, position: CGPoint, isEnabled:Bool) {
|
||||
|
||||
skillButtonNode = SkillButtonNode(iconName: iconName,
|
||||
text: text,
|
||||
isEnabled: isEnabled,
|
||||
|
@ -14,7 +14,7 @@ class GameViewController: UIViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
|
||||
if let view = self.view as! SKView? {
|
||||
let scene = MenuScene(size: self.view.bounds.size)
|
||||
EntityManager.menuEMInstance.setScene(scene: scene)
|
||||
@ -27,11 +27,11 @@ class GameViewController: UIViewController {
|
||||
MatchmakingHelper.sharedInstance.viewController = self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override var shouldAutorotate: Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
return .allButUpsideDown
|
||||
@ -39,7 +39,7 @@ class GameViewController: UIViewController {
|
||||
return .all
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override var prefersStatusBarHidden: Bool {
|
||||
return true
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ class SettingsScene: SKScene {
|
||||
var entityManager = EntityManager.settingsEMInstance
|
||||
|
||||
override func sceneDidLoad() {
|
||||
|
||||
entityManager.setScene(scene: self)
|
||||
let positionX = self.size.width * 0.1
|
||||
let positionY = self.size.height * 0.05
|
||||
|
Loading…
Reference in New Issue
Block a user