Esempio n. 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        IShip ship = collision.GetComponent <IShip>();

        if (ship != null)
        {
            ship.GetDamaged(damage, isPlayerBullet);
        }

        gameObject.SetActive(false);
    }