Created
September 18, 2021 03:49
-
-
Save curious-username/1a0272f0e5f014ce03eefc19fe36844f to your computer and use it in GitHub Desktop.
rando collision code
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
if(collision.tag == "Player") | |
{ | |
if(_player != null) | |
{ | |
_player.Damage(); | |
} | |
Destroy(gameObject); | |
} | |
if(collision.tag == "PlayerWeapon") | |
{ | |
Destroy(gameObject); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment