Quantcast
Channel: Answers by "Vandarthul"
Viewing all articles
Browse latest Browse all 86

Answer by Vandarthul

$
0
0
I believe the problem is GetComponent returns a Type therefore it needs to be assigned to a variable. SpriteRenderer weapGunRenderer = weapGun.GetComponent(); weapGunRenderer.enabled = true; SpriteRenderer weapMeleeRenderer = weapMelee.GetComponent(); weapMeleeRenderer.enabled = false;

Viewing all articles
Browse latest Browse all 86

Trending Articles



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