Ejemplo n.º 1
0
    void targetDowned()
    {
        _animator.SetBool("Downed", true);
        _aSource.clip = downSound;
        _aSource.PlayOneShot(_aSource.clip);

        foreach (Collider hitbox in hitboxes)
        {
            hitbox.enabled = false;
        }

        _aSource.clip = awardSound;
        _aSource.PlayOneShot(_aSource.clip);
        points.AwardElimination(isTrainingMode);

        if (isTrainingMode)
        {
            StartCoroutine(ResetTarget());
        }
    }