Pause a script for a moment but keep game playing?

Hey, I am shooting a gun, but I want it to pause for just a split second, and I don't know where to start on this. Anything in the reference doc. I should check out? So, for example, a semi-automatic, you want it to shoot 3 instead of rapid fire/hold down. Or another, you want it to line up with your animation?

Any help? Thanks a lot, Justin W.

you can use the Time.time + some offset value to keep a piece of script from running. EX

private float scriptDelayAmount = 0.3f // in seconds
private float scriptDelayLastTime;

public void Update()
{
    // some script that you dont want to run 
   if( scriptDelayLastTime < Time.time )
   {
       // do stuff that you'd like delayed at some point
   }

   if( /* something that should delay the above script such as if mouse click */ )
   {
      scriptDelayLatTime = Time.time + scriptDelayAmount;
   }
}

There is a function for this called WaitForSeconds. Examples from scripting reference:

//JavaScript

// Prints 0
print (Time.time);
// Waits 5 seconds
yield WaitForSeconds (5);
// Prints 5.0
print (Time.time);

//c#

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public IEnumerator Awake() {
print(Time.time);
yield return new WaitForSeconds(5);
print(Time.time);
}
}