kadyr

Untitled

Oct 16th, 2021
764
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Pistol : Gun
  2. {
  3.     private Quaternion pc;
  4.     void Start()
  5.     {
  6.         speed = 20f;
  7.         damage = 25;
  8.         coolDown = 1.25f;
  9.     }
  10.  
  11.     protected override void OnShoot()
  12.     {
  13.         var bul = Instantiate(bullet, riffleStart.transform.position,
  14.             transform.rotation);
  15.         bul.GetComponent<Bullet>().setDirection(GetComponentInParent<PlayerController>().transform.forward);
  16.         bul.GetComponent<Bullet>().MakeNewBullet(20,25);
  17.     }
  18. }
RAW Paste Data