Switch between 2 cameras on keypress ‘C.’ Attach the script to your screen & add both cameras in the script’s camera input.
A Script that demonstrates different ways to control & move a cube. Attach this script to a cube (or any object), and manipulate it with the WASD, N & M keys.
The following script can be attached to Unity’s camera & will generate the first 20 values of the Fibonacci sequence.
This is kind of a hefty code to be using this early on in Unity development, but as a fan of scheduled games and simulation style games, day/night cycles are some of the best things out there. The page itself does point out how there are better, more immersive ways to do this (such as manually editing skybox materials in relation to time passing), but this script needs only be attached to an object and pretty much handles all the work itself! Instructions are within the script to make it your own, so it should be easy to add on to even the simplest of games for a bit of immersion.
Found a script that can get the time that has passed in a game and show it. This would be super ideal for a racing game, and you could tweak it for time attack modes or something else of the sort!
Here are 2 scripts for triggering in-game sound effects:
Three scripts to be attached to an AppleTree, Apple, and a Basket to catch randomly falling objects.
This is a very simple light switch controlling a named light source in the scene.
This is a script I found on Reddit. Just attach the script to the camera you want to move and control the camera with the WASD keyboard keys.