Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
You instantiate a new asteroid at line 36. So, `asteroidInstance` is your game object coming from the prefab. It'll have your script attached, so you can use `GetComponent()` to get the script, then change the variables you want.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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