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

methods - python can't use function in submodule -

Java 3D LWJGL collision -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -