Quantcast
Channel: Questions in topic: "attach"
Viewing all articles
Browse latest Browse all 168

Applying Scripts held in a list to a game object

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 168

Trending Articles