Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

Can't get it in Unity #33

Open gamertagjochem opened 3 years ago

gamertagjochem commented 3 years ago

when I pull it to Unity there appears an error what says: !The referenced script (Unknown) on this Behaviour is missing! How can I fix that? The referenced script (Unknown) on this Behaviour is missing! unity 2D-Character-Controller

TheGodlyDemon commented 2 years ago

Im guessing its because you pasted the entire script in instead of just the code inside the script class, this can cause the Public Class Script:Monobehaviour part to be incorrectly named and can cause problems, just rename the script again after you pasted it or change the code in the script instead to match the script name in the Unity interface.