private void OnTriggerEnter(Collider other) { if ((_interaction = other.gameObject.GetComponent <IInteraction>()) != null) { _interaction.Detected(); instanceId = other.gameObject.GetInstanceID(); } }