ios - Touchesbegan method inactive from viewcontroller -


when adding uiimageview viewcontroller, want make touchesbeganmethod inactive till uiimage pressed.

now have set up, need know how can prevent gamescene noticing touches setting code (only) in viewcontroller.

anyone knows how?

gamescene.paused = true // pauses game, touchesbegan method still active! 

you set userinteractionenabled false on view want disable touches or check on begining in touches began this:

if gamescene.paused == true {     return } 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -