|
hey, i have no idea what is causing this;
the var ditched line is the line where the error is coming from :S
(comments are locked)
|
|
Try casting the component you're referencing: You cannot cast Component[] to GemScriptV2. It's not going to return an error because of the as operator but Ditched will be null.
Feb 02 '11 at 12:27 PM
Senhor de todo o Mal
(comments are locked)
|
|
var Ditched is of type GemScriptV2. gameObject.GetComponentsInChildren(GemScriptV2) returns an array of Component. You cannot cast Component[] to GemScriptV2. Try this:
(comments are locked)
|
