private void OnBeatEvent(int beatcount, bool playerSuccess, float nextBeat, BeatManager.BeatAction nextBeatAction) { if (!playerSuccess) { _health.AccountDamages(Damage, BeatManager.Instance.gameObject); HurtFx.Instance.TriggerHurtFx(Color.red, true); } }
public void Hit(HitInfo hitInfo) { if (_hits.Contains(hitInfo.Id)) { return; } _hits.Add(hitInfo.Id); _health.AccountDamages(hitInfo.Damage, hitInfo.Source); }