Basically, I am making a game where the player has to dodge flying cubes... But I can't seem to get one feature to work. I want to "activate" or "add" a rigidbody to the player when one of the flying cubes hit it, but everything that I have tried has not worked... This is the code that people elsewhere have used:
Ah, I now know what went wrong. You were all right, so thanks to everyone who posted answers. Basically the problem was a bug (or a complicated feature) in the engine (or my version of the engine)... it only happened when I named my script "collision" (?), and in doing so, I got a strange warning message saying: "This message parameter has to be of type: Collision". It might be just a bug in my downloaded version of Unity (3.2.0), but when I renamed my script to something else, it was fine.