Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Collider[] hitColliders = Physics.OverlapSphere(transform.position, 4);
  2.  
  3. for (int i=0; i < hitColliders.Length; i++) {
  4. if (hitColliders [i].CompareTag ("Humpable")) {
  5. StartCoroutine (Hump(hitColliders [i].gameObject));
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement