Created
June 24, 2021 08:43
-
-
Save daniele-quero/edffebd7767c22604a3bd279e2dfe649 to your computer and use it in GitHub Desktop.
player collision logic
This file contains hidden or 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
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