I have just noticed that wordpress is removing some of the code from my source code … I know that some helpful people have pointed this out a couple of times already, but this is the first time I have had a serious look. My apologies for all of the trouble this has caused people (mainly due to compile errors you would have got). Every time GetComponent() is called it is expecting a type being passed in angle brackets. For example
WorldObject worldObject = hitObject.transform.root.GetComponent< WorldObject >();
WorldObject worldObject = hitObject.transform.root.GetComponent();
which is how all of the code published in the blog so far has come out as. The type to be passed in is the type that you are saving the object as. So in the example above we are storing a WorldObject, so we need to put WorldObject between the angle brackets. I will go through all of the posts in the near future and tidy this up so that in the future people do not have this problem.
Edit: It seems that this may not even be consistent … Note to anyone trying to comment with corrections, it seems to need spaces between the angle brackets and the type in order to show more consistently.