Exemplo n.º 1
0
 void GetCalificationType()
 {
     if (_M4A112_managerDragA1._TypeValidation == M4A112_managerDragA1.TypeValidation.Inmediata)
     {
         _M4A112_managerDragA1.ImmediatelyValidation(_drag.GetComponent <M4A112_dragA1>(), this);
     }
     else
     {
         StartCoroutine(_M4A112_managerDragA1.StateBtnValidar());
     }
 }
Exemplo n.º 2
0
    public void OnPointerClick(PointerEventData eventData)
    {
        inDrop = false;
        swap   = false;

        if (_drop)
        {
            _drop.GetComponent <M4A112_dropA1>()._drag = null;
            _drop = null;
        }

        if (_M4A112_managerDragA1._OperatingMethod == M4A112_managerDragA1.OperatingMethod.Create)
        {
            if (_M4A112_managerDragA1._drags.Contains(this) && !ItsInfinite)
            {
                _M4A112_managerDragA1._drags.Remove(this);
                Destroy(this.gameObject, .3f);
            }
        }

        GetComponent <RectTransform>().anchoredPosition = _defaultPos;
        UpdateCurrentPosition();
        StartCoroutine(_M4A112_managerDragA1.StateBtnValidar());
    }