Function pause

  • pause the current stage

    Parameters

    • Optionalmusic: boolean = false

      pause current music track on screen pause

    Returns void

    pause

    state