Beispiel #1
0
    void OnParticleCollision(GameObject other)
    {
        var damage = other.transform.parent.gameObject.GetComponent <EnemyShooter>().attackDamage;

        health.TakeDamage(damage);
    }