Quantcast
Channel: Answers by "brunopava"
Viewing all articles
Browse latest Browse all 64

Answer by brunopava

$
0
0
void SeekAndDestroy() { blocks = GameObject.FindGameObjectsWithTag("Buildplace"); if (blocks.Length != 0) { block = blocks [Random.Range (0, blocks.Length)]; rend = block.GetComponent(); rend.material.color = Color.red; // change this: block.GetComponent().empty = false; } }

Viewing all articles
Browse latest Browse all 64

Trending Articles



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