Hello all,
This may be the simplest thing in the world but, I currently have a list containing a series of scripts that the user has plugged in at the front end of my program, just like you can do with game objects only applied to MonoScripts now I am looking to take these scripts and apply them to the GameObject the script is attached to, somthing along the line of
gameObject.AddComponent;
were
"DetectUnits"
is:
public List DetectionUnits;
Received from a script higher up the chain
any tips ?
↧