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