This was a game I was making in Unity back in 2013. I remember all the coding being in javascript, which made creating all the mechanics relatively easy since I had always struggled with C languages.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.