Unity 2d simple c# shooting script
Can somebody tell my a simple c# shooting script that fires a bullet at 1000 units (whatever the speed is), and when the bullet collides with something, it sets the object that it collides with's variable health to 0, and deletes the bullet. The bullet needs to shoot straight on the x axis, meaning that it doesn't have a rigidbody. Please help!
Comment
Best Answer
Answer by akale · Jan 14, 2016 at 10:22 PM
THAN$$anonymous$$ you SOOOOOOOOOOOOO $$anonymous$$UCH!
Your answer
Follow this Question
Related Questions
No overload for method 'fireBullet' takes 0 arguments 1 Answer
C# 2D Shooting a bullet based on player direction 1 Answer
2D Bullet Not Working 1 Answer
Shooting Mechanic in 2D Mobile (Unity C#) 1 Answer
Unity 2D bullet bounce 0 Answers