Skip to content

Instantly share code, notes, and snippets.

@curious-username
Last active September 23, 2021 01:44
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/1d9e305825fe37b77f649abd3d42460a to your computer and use it in GitHub Desktop.
Save curious-username/1d9e305825fe37b77f649abd3d42460a to your computer and use it in GitHub Desktop.
private void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Shield")
{
Destroy(gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment