private void OnTouchMoved(CCTouch arg1, CCEvent arg2) { if (!StartGameButton.IsPointInBounds(arg1) && StartGameButton.IsPressed) { StartGameButton.IsPressed = false; } if (!HelpButton.IsPointInBounds(arg1) && HelpButton.IsPressed) { HelpButton.IsPressed = false; } /*if (!OptionsButton.IsPointInBounds(arg1) && OptionsButton.IsPressed) * OptionsButton.IsPressed = false;*/ }
private void OnTouchUp(CCTouch arg1, CCEvent arg2) { if (StartGameButton.IsPointInBounds(arg1) && StartGameButton.IsPressed) { StartGameButton.OnTouchUp(); } if (HelpButton.IsPointInBounds(arg1) && HelpButton.IsPressed) { HelpButton.OnTouchUp(); } /*if (OptionsButton.IsPointInBounds(arg1) && OptionsButton.IsPressed) * OptionsButton.OnTouchUp();*/ }
private bool TouchDown(CCTouch arg1, CCEvent arg2) { if (StartGameButton.IsPointInBounds(arg1)) { StartGameButton.IsPressed = true; } if (HelpButton.IsPointInBounds(arg1)) { HelpButton.IsPressed = true; } /*if (OptionsButton.IsPointInBounds(arg1)) * { * OptionsButton.IsPressed = true; * }*/ return(true); }