void OnTriggerEnter(Collider other) { GameUnit gu = other.GetComponent <GameUnit>(); if (gu != null) { gu.InflictDamage(DamageDealt); } }