Error:
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 Solution 'DataFetcher' (0 projects) Assets/Control.cs 34
Code:
DataObject weather = gameObject.AddComponent();
↧