Add r scripts and minor changes in unity game.