IEnumerator wait(float waitTime){ //creating a function yield return new WaitForSeconds(waitTime); //tell unity to wait!! } void Start(){ print("start"); wait(1); ///using function print("Good night") }