Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. //
  2. void OnTriggerEnter2D(Collider2D other)
  3. {
  4. if (other.CompareTag("Snow"))
  5. {
  6.  
  7. Instantiate(snowBallEffect, transform.position, transform.rotation);
  8. Destroy(gameObject);
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement