protected virtual void Attack(float _damage) { print("Attacking... and doing " + _damage + " points of damage"); damageEventData = new DamageEventData(EventSystem.current); damageEventData.Initialize(_damage); player.OnDamage(damageEventData); }
private void Shoot() { damageEventData.Initialize(damage); HandleShooting(); }