Quantcast
Viewing all articles
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 all articles
Browse latest Browse all 51

Trending Articles