public void OnTriggerEnter(Collider other) { AttackProps attackProps = other.gameObject.GetComponent <AttackProps>(); Debug.Log("hit"); if (attackProps) { health -= CalculateDamage(attackProps); if (!isStunned && attackProps.isStunning) { OnStunStart(); attackProps.Proliferate(this); } } }