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); } }
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); } }