Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pistol : Gun
- {
- void Start()
- {
- speed = 20f;
- damage = 25;
- coolDown = 1.25f;
- }
- protected override void OnShoot()
- {
- var bul = Instantiate(bullet, riffleStart.transform.position,
- transform.rotation);
- bul.GetComponent<Bullet>().setDirection(transform.forward);
- bul.GetComponent<Bullet>().MakeNewBullet(20,25);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement