How do you execute a script on a different GameObject and or its specific functions from within another script? Also how to connect scripts that are on different objects. Like for instance say I have a script for selecting stuff it can select anything in the game but it has ifs for each games tag, how then would I execute it to then use the functionality of a more specific script that has to do with what you selected?
asked Aug 10 '12 at 08:25 AM
this is explained in incredible detail with literally dozens of examples on the unity web site
notice the links "Accessing Other Components Accessing Other Game Objects"
If you ever have trouble finding unity documentation, using google just go "Unity3D documentation scripting reference other scripts"
answered Aug 10 '12 at 08:42 AM