private IEnumerator RespawnAfterSomeTime() { yield return(new WaitForSeconds(0.5f)); if (player.isVisible == false) { transform.position = RespawnCollision.GetCurrentRespawnPosition(); } }
private void RepositionPlayer() { transform.position = RespawnCollision.GetCurrentRespawnPosition(); }