void GetCalificationType() { if (_managerDragDrop._TypeValidation == ManagerDragDrop.TypeValidation.Inmediata) { _managerDragDrop.ImmediatelyValidation(_drag.GetComponent <BehaviourDrag>(), this); } else { StartCoroutine(_managerDragDrop.StateBtnValidar()); } }
public void OnPointerClick(PointerEventData eventData) { inDrop = false; swap = false; if (_drop) { _drop.GetComponent <BehaviourDrop>()._drag = null; _drop = null; } if (_managerDragDrop._OperatingMethod == ManagerDragDrop.OperatingMethod.Create) { if (_managerDragDrop._drags.Contains(this) && !ItsInfinite) { _managerDragDrop._drags.Remove(this); Destroy(this.gameObject, .3f); } } GetComponent <RectTransform>().anchoredPosition = _defaultPos; UpdateCurrentPosition(); StartCoroutine(_managerDragDrop.StateBtnValidar()); }