public void attackhit() { if (target == null) { return; } target.takedamage(damage); target.GetComponent <damdis>().showdamage(); }
public void attackhitevent() { if (target == null) { return; } else { target.GetComponent <bloodsplash>().showsplatter(); target.attack(damage); } }