If I wanted a script to reference different scripts depending on the instance of the object it’s used in how would I do that?
Is there a way to make it work like the way a Public.GameObject works inside of the inspector?
If I wanted a script to reference different scripts depending on the instance of the object it’s used in how would I do that?
Is there a way to make it work like the way a Public.GameObject works inside of the inspector?
Accessing other gameObjects:
http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html
Accessing other components:
http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Components.html
GameObject.GetComponent:
Google: