Created
September 18, 2021 04:02
-
-
Save curious-username/01aa69b5dbbe02bccda3f7fda775753c to your computer and use it in GitHub Desktop.
laser death
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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