I figure out the reason finally:It is because of the GameLayer instance A that used to register the PanGestureRecognizer and the GameLayer instance B which used to show the screen is not same instance.Such that processPanGesture() function is just change instance A’s currentPer,While what i print is instance B’s currentPe
solved Why the float variable is always 0 even though i have changed its value [closed]