Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Pistol : Gun
- {
- void Start()
- {
- damage = 20;
- cooldown = 0.5f;
- speed = 25f;
- auto = false;
- }
- protected override void OnShoot()
- {
- GameObject bol = Instantiate(bullet, riffleStart.transform.position, transform.rotation);
- bol.GetComponent<Bullet>().setDirection(transform.forward);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement