Ejemplo n.º 1
0
        private IEnumerator <float> C_RefreshScrollList(GameObject obj = null, bool isShowing = false)
        {
            if (isRefreshing)
            {
                yield break;
            }
            isRefreshing = true;
            yield return(0);

            itemScrollList.SortBasedOnScrollMovement();
            yield return(0);

            if (isShowing)
            {
                if (obj != null)
                {
                    Vector3 adPos = obj.transform.localPosition;
                    nativeAdItem.cachedGameObject.transform.localPosition = adPos;
                    nativeAdItem.cachedGameObject.SetActive(true);
                }
                itemScrollList.ResetChildrenPositions();
            }
            yield return(0);

            isRefreshing = false;
        }