Is there something wrong with this shooting script
In the project I'm working on I'm using a script almost identical to the one in the space shooter tutorial, but it doesn't seem to create a new shot when I press Fire1. The shots in my project are empty gameobjects with particle systems as children and no other components, so it may be possible that I need a rigidbody component or a script that defines the shot's velocity. Or maybe there's an issue with the particle system not starting after it's instantiated.
Answer by allenallenallen · Jan 31, 2017 at 05:12 PM
Line 11. "Update" the "U" has to be capitalized.
Answer by AzuCer · Feb 01, 2017 at 12:12 AM
Thanks! I actually didn't notice that. I fixed it, but I have to wait until another script is debugged before i can test the change.
Your answer
![](https://koobas.hobune.stream/wayback/20220612105956im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to shoot the ball in the direction of the arrow ? 2 Answers
Script creating 2 prefabs instead of 1 0 Answers
Problem with a shooting script. 0 Answers
Interesting Enemy AI issue 2 Answers
Don't know how to end animation of shooting ! (code) Please help ! 0 Answers