duck

duck

May 10th, 2010
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.14 KB | None | 0 0
  1.     if (Physics.Raycast(ray, hit)) {
  2.         if (hit.collider.tag == "Enemy") {
  3.             Destroy(hit.collider.gameObject);
  4.         }  
  5.     }
Add Comment
Please, Sign In to add comment