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?
↧