Ejemplo n.º 1
0
        private void OnTriggerEnter2D(Collider2D other)
        {
            BaseProjectile incomingProjectile = other.GetComponent <BaseProjectile>();

            if (incomingProjectile == null)
            {
                return;
            }
            incomingProjectile.HitByWeapon();
        }