Guest User

Untitled

a guest
Jun 24th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function OnTriggerEnter(other:Collider){
  2.     if(Regex.IsMatch(other.gameObject.name, "hammer")){
  3.         if(other.gameObject.GetComponent("Rigidbody") == true){
  4.             Debug.Log("HITTTTTTT");
  5.         }
  6.     }
  7. }
Add Comment
Please, Sign In to add comment