1. Make a new Unity 3D document called "Coin Collection."
2. Create a base using a "cube".
GameObject > 3D Object > Cube (Stretch to fit scene)
3. Download the Standard Assets (delete the Simple Activator Script that causes the Console error).
Window > Asset Store > Standard Assets
4. Add a FPS Controller.
Standard Assets > Characters > First Person> Prefab>FPSController
5. Delete Main Camera
6. Add a Coin
Make a coin with the cylinder 3D Object set to a scale of 1, .1, 1!
Choose your coin color!
7. Delete Capsule collider and add add box collider.
8. Name coin ... PickUp!
Name "Tag" PickUp as well!
9. Set coin Box Collider to "Is Trigger."
11. Drag coin script to coin!
Set your Pick Up as PLAYER!
Test that your FPS Player picks up coin.
coinscript.cs |
12. Drag coin from Hierarchy to Bottom Project Window!
11. Add Rotator C# to Assets. Drag to Coin.
Coin should spin!
rotator.cs |