Either copy-paste the text from the demo into an empty slot in your editor, or you can simply open your project and the demo, right-click on the script's name in the list on the left and choose "Copy", then go to your game, right-click and choose "Paste".