Unity is where you build the game. You place things in a scene, press Play, and watch it run. But the code that makes those things move is written in a separate program called a code editor. Unity does not have one built in. When you double-click a script in Unity, it hands the file to whatever editor you installed, and that is where you type.