public void OnColliderEnter(Collider collision) { PlayerHandler enemy = other.transform.GetComponent <PlayerHandler>(); if (enemy != null) { enemy.DamagePlayer(damage); Destroy(self); } }
void DamageBite() { Debug.Log("i did damage"); playerHandler.DamagePlayer(10f); }