General
- What are scripts in Unity and how are they created and used
- How to control GameObjects with scripts
- What is an event function and how are the most common ones used
- How to create and destroy GameObjects within scripts
- How to use namespaces to organize classes
- What are attributes and how to use them
- How to use Debug.Log()
- What is a vector
Inside the maze scene, create a Sphere GameObject named Player with a Rigidbody component.
- Position: (23, 1.2, 16)
- Scale (2, 2, 2)
Create a directory Scripts. In this directory, create a new C# script called PlayerController.cs. Attach this script to the Player object. Within this script, update the Start() and FixedUpdate() functions to allow the Player to move when either the WASD or arrow keys are pressed
Move the Main Camera to position (22, 26, 7). Create a new C# script in the Scripts directory called CameraController.cs.
Create a new Cylinder GameObject named Coin.
Create a new C# script called Rotator.cs and attach it to Coin.
Create a new Plane GameObject named Trap.
Add a new public int health variable to your PlayerController.cs script. Set the initial value of health to 5.
Create a new Plane GameObject named Goal.
In PlayerController.cs, add to the existing void OnTriggerEnter(Collider other) function
Create an Update() function within PlayerController.cs.