Quantcast
Channel: Answers for "Cloned Prefab"
Viewing all articles
Browse latest Browse all 6

Answer by Syntinel

$
0
0
Try this: ( adapted from your comments ) var hero; void Start(){ hero = GameObject.FindWithTag("Player"); //be sure to set the tag on the correct object } void Update(){ hero.transform.position.x =hero.transform.position.x; hero.transform.position.y = hero.transform.position.y + 10; }

Viewing all articles
Browse latest Browse all 6

Trending Articles



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