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]); }
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; }