public void AcceptClickEvent(Vector3 worldPosition, bool uiClick, Transform hitTransform) { if (hitTransform == transform) { m_actionsController.GetComponent <ActionsController>().AddSelectedUnit(gameObject); SetHealthBarActive(true); } }