Exemple #1
0
    public void Kick()
    {
        if (!IsHitting && strategyAction.ShouldKick())
        {
            Viola.Instance.Source.PlayOneShot(KickSound, volumeScale: 1);
            animator.SetFloat("Blend", 0.3315068f);
            IsHitting = true;

            DoDmg(KickDmg);

            OnPlayerFigherHit?.Invoke(this, null);
        }
    }
Exemple #2
0
    public void Punch()
    {
        if (!IsHitting && strategyAction.ShouldPunch())
        {
            Viola.Instance.Source.PlayOneShot(PunchSound, volumeScale: 1);
            animator.SetFloat("Blend", 0.6684932f);
            IsHitting = true;

            DoDmg(PunchDmg);

            OnPlayerFigherHit?.Invoke(this, null);
        }
    }