Esempio n. 1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        inDrop = false;
        swap   = false;

        if (_drop)
        {
            _drop.GetComponent <L4A235_drop>()._drag = null;
            _drop.GetComponent <Image>().color       = new Color32(255, 255, 255, 255);
            _drop = null;
        }

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

        GetComponent <RectTransform>().anchoredPosition = _defaultPos;
        transform.localScale = Vector3.one;
        UpdateCurrentPosition();
        StartCoroutine(_L4A235_managerDrag.StateBtnValidar());
    }
Esempio n. 2
0
 void GetCalificationType()
 {
     if (_L4A235_managerDrag._TypeValidation == L4A235_managerDrag.TypeValidation.Inmediata)
     {
         _L4A235_managerDrag.ImmediatelyValidation(_drag.GetComponent <L4A235_drag>(), this);
     }
     else
     {
         StartCoroutine(_L4A235_managerDrag.StateBtnValidar());
     }
 }