I’m following an online stream which has been really helpful, however I’m encountered a problem which the guy didn’t have.
The live stream is here: 4 Hours of Making C#Shooter! From Nothing to a Game [Unity3D Livestream] - YouTube
My issue is with this one line of code:
if (Input.GetButtonDown("Fire1"))
{ Instantiate(PlayerLaser, transform.position + Vector3(0f, 0f, 0.5f), transform.rotation)
; }
The error I’m getting is that I the name doesn’t exist in this context, however I do have a prefab called PlayerLaser. Any ideas on what I’m missing?
Thanks.