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
Post a Comment