Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created October 3, 2021 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/b49dd0d73c6801f4854b992db72003e8 to your computer and use it in GitHub Desktop.
Save curious-username/b49dd0d73c6801f4854b992db72003e8 to your computer and use it in GitHub Desktop.
enemy laser garbage collection
if(transform.position.y < -5f)
{
Destroy(gameObject);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment