예제 #1
0
    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();
    }