Quantcast
Viewing all articles
Browse latest Browse all 34

Answer by Foose

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

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>