Пример #1
0
    void OnCollisionEnter2D(Collision2D collision)
    {
        HealthManager hit = collision.gameObject.GetComponent <HealthManager>();

        hit?.ApplyHealthEffect(-damage);

        DestroyProjectile();
    }