Guest User

Untitled

a guest
Feb 10th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. if (transform.up.y <= .22f
  2. && isGrounded
  3. && deathSoundHasPlayed == false) {
  4.  
  5. explosionSource.Play ();
  6. deathSoundHasPlayed = true;
  7. FindObjectOfType<GameManager> ().EndGame();
  8.  
  9. }
Add Comment
Please, Sign In to add comment