private IEnumerator respawnFromFallCoroutine() { playerControler.gameObject.SetActive(false); if (deathCounter != 3) { AudioSource.PlayClipAtPoint(deathSound, transform.position); yield return(new WaitForSeconds(1f)); deathMessageGUI.text = "Avoid falling in gaps!"; playerControler.respawn(); } yield return(new WaitForSeconds(respawnDelay)); deathMessageGUI.text = ""; playerControler.gameObject.SetActive(true); }