← Game Development with Unity learning pathGame Development with Unity · Module 3 of 10
C# scripting basics
Control game behaviour with scripts.
📖 Key ideas
- Scripts inherit from MonoBehaviour.
- Start() runs once; Update() runs every frame.
- Public/[SerializeField] fields appear in the Inspector.
- Use Time.deltaTime for frame-rate independent movement.
- Debug.Log prints to the Console.
💡 Real-life example: Update() is a heartbeat: every frame the script checks and moves things.
MonoBehaviourBase class for Unity scripts
Start()Runs once at beginning
Update()Runs every frame
Time.deltaTimeTime since last frame