Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created September 18, 2021 03:49
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/1a0272f0e5f014ce03eefc19fe36844f to your computer and use it in GitHub Desktop.
Save curious-username/1a0272f0e5f014ce03eefc19fe36844f to your computer and use it in GitHub Desktop.
rando collision code
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