public void SendAttack(CombatHandler enemyHandler) { if (readyToAttack) { comboCounter++; OnHitTarget?.Invoke(); enemyHandler.ReceiveAttack(combatInfo, transform.position.x); readyToAttack = false; } }
public void SendAttack(CombatHandler combatHandler) { combatHandler.ReceiveAttack(combatInfo, transform.position.x); OnHit(); if (isPenetrant) { transform.Find("Attack").gameObject.SetActive(false); } else { Ending(); } }