Conditioning, animations..

Hi guys, I have an endless runner, archer type, and I made a made a c# code for shooting, but I dont want to shot super rapid, I want to shot and then wait so I cant do it again like in the next 2 sec. how can I do that?

You can introduce delays using Coroutines, or you can use time values in Update or FixedUpdate.

public float bulletSpeed = 2; // every 2 seconds
private float lastBullet;

private void Start() {
lastBullet = Time.fixedTime;
}
private void Update() {
float now = Time.fixedTime;
if (now - bulletSpeed > lastBullet) {
Shoot();
lastBullet = now;
}
}