Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

What up with my guns

I work on my game and I made a gun that shoot,but I have another one in the scene,and when I press shoot,both of them shoot,i need to make a new scrip with the same script but different keys or what?

Answers

  • BayszBaysz Member

    you may change the input like for instance when you press A , first gun starts shooting when you press D , second gun starts shooting

    another alternative is to collision check . the gun starts shooting which is clicked by you -- you may use OnMouseDown is called when the user has pressed the mouse button while over the Collider.

Sign In or Register to comment.