Advertisement
KorolevDmitry123

Untitled

Apr 9th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class TeleportBlueBall : MonoBehaviour
  4. {
  5. public GameObject target;
  6.  
  7. void OnTriggerEnter(Collider other)
  8. {
  9. if (other.CompareTag("BlueBall"))
  10. {
  11. other.gameObject.transform.position = target.gameObject.transform.position;
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement