Quantcast
Viewing latest article 6
Browse Latest Browse All 51

why is part of my script being ignored?

sorry about the title, I'm not sure how to specify it in there alone. I have narrowed the problem down to: if (hit.collider.gameObject.layer == "WestWallTrigger"){ Instantiate(myBullet, hit.point, Quaternion.Euler(Vector3(180, 0, 0))); } anything i put within those brackets just won't trigger, and I've no idea why. it doesn't matter what layer I use, I've tried several, the script just won't continue to, in this case, instantiate at the hit point. Do any of you know why?

Viewing latest article 6
Browse Latest Browse All 51

Trending Articles



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