"You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all UnityEngine.MonoBehaviour:.ctor() GameSettings:.ctor() SettingsManager:OnEnable() (at Assets/SettingsManager.cs:17)" I don't know what this means and i don't know how to solve it, someone please help.
Picture of my code:
![alt text][1]
↧