Beispiel #1
0
    private void OnTriggerStay(Collider other)
    {
        Hurtbox Damaged;

        Damaged = other.GetComponent <Hurtbox>();
        Damaged.GetHit(1);
    }
Beispiel #2
0
    private void OnTriggerEnter(Collider other)
    {
        Hurtbox Damaged;

        Damaged = other.GetComponent <Hurtbox>();
        Damaged.GetHit(1);
        Destroy(transform.parent.gameObject);
    }