โ 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