void OnTriggerEnter(Collider other) { if (other.gameObject.tag == hitTag) { Debug.Log("hit"); other.GetComponent <Health>().TakeDamage(damage); AttackManager attackManager = GetComponentInParent <AttackManager>(); if (attackManager != null) { attackManager.AddToCombo(10); } } }