private void OnTriggerEnter2D(Collider2D other) { var component = other.GetComponent <T>(); if (component != null) { Entered.SafeInvoke(component); } }