Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function OnCollisionEnter (myCollision : Collision) {
  2. if(myCollision.gameObject.name == "panos"){
  3. if(!myCollision.gameObject.rigidbody){
  4. myCollision.gameObject.AddComponent(Rigidbody);
  5. }
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement