BCE0019: 'drop' is not a member of 'UnityEngine.Component'.
Thanks in advance, Bor.
(comments are locked)
|
|
The problem is that you are sending a game object into a function that expect a type. I would assume you meant to do something similar to this: But I don't know the type of the component you are trying to access. If you get a null reference exception after you do this, it likely means that you don't have the script on the object you cloned. I was really stupid. Everything was fine, except the variable "chutist " was named the same as the script "chutist". So it was trying to access the wrong thing. Changed the variable name to chutist1, everything is working fine now. Sorry for wasting your time guys. Thanks to your answer I figured it out. So TYVM!
Apr 04 '12 at 12:20 PM
ManiacalSquare
(comments are locked)
|

PS. I specifically do NOT want to use a static variable. Hence this method.