Beispiel #1
0
    private void Update()
    {
        if (!isAlive)
        {
            ph.DeathAnimation();
        }
        else
        {
            Movement();
            GroundedTimer();
            SetFriction();
            Jumping();
            ph.Cooldown();
        }

        if (isAlive && transform.position.y < -2f)
        {
            ph.Die();
        }
    }