I've a method in my SKScene as:
func someTypeMethod() {
print("someTypeMethod...")
}
I tried to call it from my 'ViewController' as:
if let scene = SKScene(fileNamed: "Scene") {
scene.someTypeMethod()
}
But Xcode is saying 'Value of type SKScene has no member 'scene.someTypeMethod'
I've even tried to make the method 'public' and 'class'. But still the error appears. So, how can I call such methods in my 'SKScene' from its 'ViewController'?
Please help...