Ok, im fairly new to this c# scripting, and game designing as well. So im trying to train on this by using a tutorial Unity set up. Im trying to make the game called “Roll a Ball”. I finish the script and go to test the game so far, and i get an error code that says, “Assets/playercontrolls.cs(4,14): error CS0101: The namespace global::' already contains a definition for
PlayerController” What should I do?
You have a class file named playercontrolls.cs but the class is named internally in that file “PlayerController”. It’s possible you already have this in your assets from importing the standard access and thus the same class can not live in the same namespace and a good reason why the exist. So either rename the class in that file to match the file name minus the extension or start using namespaces to organize your classes.
Unity has provided you with some information on namespaces in the manual if you desire. Namespace documentation