void OnTriggerEnter(Collider other) { if (other.tag == "Enemy") { Controllable otherCharacter = other.GetComponent <Controllable>(); otherCharacter.TakeDamage(damage); } }