Quantcast
Channel: Answers by "Foose"
Viewing all articles
Browse latest Browse all 34

Answer by Foose

$
0
0
I guess your code in script 1 is wrong. Are both scripts attached to your gameobject "projectileTransform"? If so, I would write it like this. `ProjectileMoveScript testS = projectileTransform.GetComponent();` IF they are not attached to the same gameobject: ProjectileMoveScript testS = GameObject.Find("projectileTransform").GetComponent();

Viewing all articles
Browse latest Browse all 34

Latest Images

Trending Articles



Latest Images