示例#1
0
    void Death()
    {
        health.value = 0;
        StartSinking();

        shooter.DisableEffects();
        isDead = true;
        anim.SetTrigger("Die");



        aSource.clip = deathClip;
        aSource.Play();



        playerMovement.enabled = false;
        shooter.enabled        = false;
        Invoke("LoadLoseUI", 3f);
    }