Sebastian Lague | Unity Create a Game Series (E02. gun system) @SebastianLague | Uploaded 9 years ago | Updated 16 hours ago
Welcome to the second episode of this Create a Game series.
FAQ:
Q: Can't add gun in inspector
A: Make sure that gun script is attached to the gun prefab.
Q: Gun not being equipped when I press play
A: Make sure your Start method is spelled correctly in the GunController script. It must have a capital 'S' or it will not be called by Unity.
Source code:
https://github.com/SebLague/Create-a-Game-Source
Follow me on twitter @SebastianLague
Support my videos on Patreon: http://bit.ly/sebPatreon
Welcome to the second episode of this Create a Game series.
FAQ:
Q: Can't add gun in inspector
A: Make sure that gun script is attached to the gun prefab.
Q: Gun not being equipped when I press play
A: Make sure your Start method is spelled correctly in the GunController script. It must have a capital 'S' or it will not be called by Unity.
Source code:
https://github.com/SebLague/Create-a-Game-Source
Follow me on twitter @SebastianLague
Support my videos on Patreon: http://bit.ly/sebPatreon