Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1.     public float shootInterval = 1.0f;
  2.     private float shotTime = 0;
  3.  public void Fire()
  4.     {
  5.         if (reload == false && ammoInMagazin > 0 && (Time.time - shotTime) > shootInterval)
  6.         {
  7.  
  8.             shotTime = Time.time;
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement