private IEnumerator RespawnCoroutine() { player.transform.position = transform.position; yield return(new WaitForSeconds(0.1f)); player.gameObject.layer = (int)Layer.Player; playerStats.EnablePlayer(true); playerStats.SetFullHealth(); }