I'm trying to remove the Reflection part of ones of my scripts so it works in WebGL, however I am having some trouble.
Basically I need a way to store references to classes in an Inspector array so that I can then use AddComponent() to add them to an object I spawn.
The code I'm using uses arrays to hold different types of AI modules and then chooses a random set of modules and add them to an base enemy prefab. Previously I was using Reflection to create the array and add the modules but that doesn't seem to work in WebGL. Currently the modules are Monobehaviours but it is possible for me to make them normal classes.