playerCharacter.StartDeath C# (CSharp) 메소드

StartDeath() 공개 메소드

public StartDeath ( ) : void
리턴 void
    public void StartDeath()
    {
        playerDead = true;
        characterAnimator.SetBool("Hit", true);
        characterAnimator.SetBool("Jump", false);
        gameObject.GetComponent<Collider2D>().enabled = false;
        gameObject.GetComponent<EdgeCollider2D>().enabled = false;
        ScoreKeeper.DisplayScore = 0;
        Invoke("DisplayGameOverScreen", deathDelay);
    }