Example #1
0
    private IEnumerator RespawnAfterSomeTime()
    {
        yield return(new WaitForSeconds(0.5f));

        if (player.isVisible == false)
        {
            transform.position = RespawnCollision.GetCurrentRespawnPosition();
        }
    }
Example #2
0
 private void RepositionPlayer()
 {
     transform.position = RespawnCollision.GetCurrentRespawnPosition();
 }