|
Im starting to dig into C# more than JS. Just so Im clear do I have to actually using GameObject.Find() for C#? or does variable = gameObject.GetComponenet
(comments are locked)
|
|
GetComponent<> gets scripts on the same object. If the script is on a different object, either make a variable of the script type and drag the GameObject containing that script onto it in the editor, or use GameObject.Find(). Find is slower, prefer the other options first whenever possible. Mind giving me a full example just so Im sure?
Apr 12 '12 at 03:25 AM
GC1983
Nevermind! I got it working. thank you!
Apr 12 '12 at 03:56 AM
GC1983
(comments are locked)
|
