The document contains code for two C# scripts in Unity - GameController.cs and Player.cs. GameController.cs logs messages to the console when the space or left arrow keys are pressed. Player.cs controls the movement of a player object, allowing it to move left, right, and up via keyboard inputs by changing its transform position over time based on the speed variable.
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0 ratings0% found this document useful (0 votes)
52 views1 page
Unity C Sharp Primjer
The document contains code for two C# scripts in Unity - GameController.cs and Player.cs. GameController.cs logs messages to the console when the space or left arrow keys are pressed. Player.cs controls the movement of a player object, allowing it to move left, right, and up via keyboard inputs by changing its transform position over time based on the speed variable.