Unity Coroutines: Wait a Second!
void Whatever() {
float delay = 1.0f;
StartCoroutine(DoSomethingAfterWaiting(delay));
}
IEnumerator DoSomethingAfterWaiting(float delay) {
yield return new WaitForSeconds(delay);
// Add Code here to Do it, Do it, Do it till you’re satisfied… whatever it is
yield break;
}