Exemple #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (_isStop)
        {
            return;
        }
        var enemy = other.GetComponent <Enemy>();

        if (enemy != null)
        {
            _shooter.BulletHit(enemy.Cost, this);
        }
    }