Пример #1
0
 void ScrollCellIndex(int _index)
 {
     panelListChipDetail = transform.parent.parent.parent.parent.gameObject.GetComponent <PanelListChipDetailController>();
     if (panelListChipDetail == null)
     {
         Debug.LogError("panelListChipDetail is null");
     }
     _index = Mathf.Clamp(_index, 0, panelListChipDetail.listChipDetail.Count - 1);
     InitData(panelListChipDetail.listChipDetail[_index]);
 }
Пример #2
0
    public override void ResetData()
    {
        StopAllCoroutines();
        if (tweenRotateGlow != null)
        {
            LeanTween.cancel(tweenRotateGlow.uniqueId);
            tweenRotateGlow = null;
        }
        if (tweenAlphaGlow != null)
        {
            LeanTween.cancel(tweenAlphaGlow.uniqueId);
            tweenAlphaGlow = null;
        }

        isPressed       = false;
        isOnPointerExit = false;

        imgGlow.transform.rotation = Quaternion.identity;
        canvasGroupGlow.alpha      = 0f;

        chipDetail          = null;
        panelListChipDetail = null;
    }