Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- public var ccollider : GameObject;
- function OnCollisionEnter (hit : Collision)
- {
- if(hit.gameObject.name == ccollider.name) {
- print("check");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement