Advertisement
kadyr

Untitled

Sep 19th, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Pistol : Gun
  6. {
  7.  
  8. void Start()
  9. {
  10. damage = 20;
  11. cooldown = 0.5f;
  12. speed = 25f;
  13. auto = false;
  14. }
  15.  
  16. protected override void OnShoot()
  17. {
  18. GameObject bol = Instantiate(bullet, riffleStart.transform.position, transform.rotation);
  19. bol.GetComponent<Bullet>().setDirection(transform.forward);
  20. }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement