private void ActionEnd() { if (target != null) { if (target.GetComponent <InteractionObject>() != null) { InteractionObject interactionObject = target.GetComponent <InteractionObject>(); interactionObject.EndAction(); } } }