void OnTriggerEnter2D(Collider2D col) { if (col.CompareTag("Player")) { bandit.TakeDamage(20); Debug.Log("you hut 20"); } }
public void DealDamage(float damage) { banditController.TakeDamage(damage); }
public void DealDamage(float damage) { banditController.TakeDamage(damage); RuntimeManager.PlayOneShot(hitEvent); }