public void Hit() { gameObject.GetComponent <AudioSource>().Play(); if (!controller.dodge) { live--; } doge_count -= 2; if (doge_count < 0) { doge_count = 0; } controller.GetDamage(); }
public void Hit() { gameObject.GetComponent <AudioSource>().Play(); if (!controller.dodge) { live--; } doge_count -= 2; if (doge_count < 0) { doge_count = 0; } controller.GetDamage(); }