how would I make an array of available scripts.
I have 3 scripts script1.js, script2.js, script3.js
I want to do something like this
myscripts=new List.<?>(script1,script2,script3);
I want to use this with GetComponent which requires a Type?’
So do I make a list of types?
gameObject.GetComponent(myscripts[0]).run_some_function_in_the_script();
Is there a way to make a list of scripts that GetComponent could use?
Thanks,