예제 #1
0
    // Respawns a new player
    IEnumerator RespawnPlayer()
    {
        yield return(new WaitForSeconds(2.0f));

        playerSpawn.Respawn();
        yield return(new WaitForSeconds(2.0f));

        playerSpawn.EnableCollisions();
    }