Advertisement
nikcio

Box_hit

Sep 24th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function OnCollisionEnter(collision: Collision) {
  2.  
  3. if(collision.transform.tag == "Your_Box"){
  4. Debug.Log("The Box is hit");
  5. }
  6.  
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement