public override void SetDamage(float damage, string name) { hp -= damage; if (hp > 0) { } else { bahaha.Scores(name); bahaha.StartCor(); Destroy(gameObject); } }
public override void SetDamage(float damage, string name) { hp -= damage; if (hp > 0) { } else if (scoreSend) { scoreSend = false; mb.Scores(name); mb.StartCor(); Destroy(gameObject); } }