Is this okay?
public class MyScript : MonoBehavior {
Class c = new Class();
}
I know that it’s generally advised to put code that needs to be executed in the beginning in the Awake()/Start() functions, but this seems to result in the newly created class not being the one I can see in the inspector. I guess I’m asking if there are any weird side effects that could happen if the class initialization happens outside in the class body.