Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public float shootInterval = 1.0f;
- private float shotTime = 0;
- public void Fire()
- {
- if (reload == false && ammoInMagazin > 0 && (Time.time - shotTime) > shootInterval)
- {
- shotTime = Time.time;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement