I shoot about 10 shots per second, but i want to change that! for example to one per second, need help! can you help me with reloading too? THANK YOU VERY MUCH!!!
Script;
var projectile : Rigidbody;
var speed = 20;
function Update () {
if(Input.GetButton(“Fire1”)) {
clone = Instantiate(projectile, transform.position, transform.rotation);
clone.velocity = transform.TransformDirection(Vector3(0,0,speed));
Destroy(clone.gameObject,3);
}}