For those of you with less experience in troubleshooting code, follow this simple exercise:
- Open the Unity editor to a new blank project and starting scene.
- Create a Cube object in the scene.
- Select the Cube and in the Inspector window, click on Add Component. Select New Script and the set the name to Test and then click on Create and Add to add the script to the object, as follows:
Creating a new script with Add Component
- This will create a script in the root Assets folder. It's not the best place to drop a script, but this method is useful for creating quick test scripts.
Try to avoid writing replication/test or ...