private void OnTriggerEnter(Collider other) { WorldEntity entity = other.GetComponentInParent <WorldEntity>(); if (entity != null) { Transform entityTransform = entity.transform; if (entityTransform == Owner) { return; } Vector3 hitNormal = (entityTransform.position - transform.position).normalized; entity.ApplyDamage(DamageType.Projectile, hitNormal, (int)Damage); } // TODO: Spawn impact sprite. Destroy(gameObject); }