Skip to content
Discussion options

You must be logged in to vote

You can add a control variable initialised to false. On x-intersect:enter you set it to true, on x-intersect:leave you set it back to false. Inside your setInterval at the very top, if the variable is false, you just return early without doing anything

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SimoTod
Comment options

SimoTod Sep 17, 2021
Collaborator

@gcw07
Comment options

@SimoTod
Comment options

SimoTod Sep 17, 2021
Collaborator

@gcw07
Comment options

Answer selected by gcw07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants