// Respawns a new player IEnumerator RespawnPlayer() { yield return(new WaitForSeconds(2.0f)); playerSpawn.Respawn(); yield return(new WaitForSeconds(2.0f)); playerSpawn.EnableCollisions(); }