示例#1
0
    void DoDisabledLogic()
    {
        HandleMovement();

        playerHealth -= damageOverTime * Time.deltaTime;
        animator.SetFloat("health", playerHealth);
        uiController.UpdateHealth(playerHealth);
        if (playerHealth <= 0)
        {
            sfx.PlayerExploded();
            GameController.instance.GameOver();
        }
    }