Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (gameObject.transform.position.y > -7) {
- health = 0;
- }
- if (health == 0 && !hasDied) {
- hasDied = true;
- StartCoroutine ("Die");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement