Skip to content

Instantly share code, notes, and snippets.

@daniele-quero
Created June 24, 2021 08:43
Show Gist options
  • Save daniele-quero/edffebd7767c22604a3bd279e2dfe649 to your computer and use it in GitHub Desktop.
Save daniele-quero/edffebd7767c22604a3bd279e2dfe649 to your computer and use it in GitHub Desktop.
player collision logic
else if (collision.tag == "Player")
{
Player player = collision.GetComponent<Player>();
if (player != null)
player.Damage(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment