Code from an alpha build of a game I am working on in Unity