Beispiel #1
0
    IEnumerator Timer()
    {
        //TODO replace this
        if (!isRespawning)
        {
            isRespawning = true;
            StartDeathAnimation();
            charController.AddForceToControlledPawn();
            playerMove.isDead = true;
            yield return(new WaitForSeconds(hurtTime));

            playerMove.isDead = false;
            RespawnThePlayer();
            isRespawning = false;
        }
    }