UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"damage player on collision"
private void OnCollisionEnter(Collision collision) { if (collision.collider.gameObject.CompareTag("Enemy")) { TakeDamage(20); }