Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created September 18, 2021 04:02
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/01aa69b5dbbe02bccda3f7fda775753c to your computer and use it in GitHub Desktop.
Save curious-username/01aa69b5dbbe02bccda3f7fda775753c to your computer and use it in GitHub Desktop.
laser death
private void OnTriggerEnter2D(Collider2D collision)
{
if(collision.tag == "Enemy")
{
Destroy(this.gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment