Exemple #1
0
    private void Update()
    {
        if (!enabled || Mathf.Abs(draggablePanel.currentMomentum.y) <= 0.0 && Mathf.Abs(draggablePanel.currentMomentum.x) <= 0.0)
        {
            return;
        }
        isStartMove = true;
        if (!isStartMove)
        {
            return;
        }
        IEnumerator enumerator = gameObject.transform.GetChild(0).GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                ScrollItemKeyNavigation component = ((Component)enumerator.Current).gameObject.GetComponent <ScrollItemKeyNavigation>();
                component.enabled = false;
                component.CheckVisibility();
            }
        }
        finally
        {
            IDisposable disposable = enumerator as IDisposable;
            if (disposable != null)
            {
                disposable.Dispose();
            }
        }
    }
Exemple #2
0
    private void OnSnapFinish()
    {
        isScrollMove = false;
        ScrollButton.CheckScrollPosition();
        IEnumerator enumerator = transform.GetChild(0).GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                GameObject gameObject = ((Component)enumerator.Current).gameObject;
                if (gameObject.activeSelf)
                {
                    ScrollItemKeyNavigation component = gameObject.GetComponent <ScrollItemKeyNavigation>();
                    component.enabled = true;
                    component.CheckVisibility();
                }
            }
        }
        finally
        {
            IDisposable disposable = enumerator as IDisposable;
            if (disposable != null)
            {
                disposable.Dispose();
            }
        }
        ButtonGroupState.UpdateActiveButton();
    }
Exemple #3
0
 private void onScrollFinished()
 {
     if (this.isEnable)
     {
         this.isScrollMove = false;
         ButtonGroupState.MuteActiveSound = true;
         this.CheckScrollPosition();
         foreach (Object obj in this.ScrollViewPanel.transform.GetChild(0))
         {
             Transform  transform  = (Transform)obj;
             GameObject gameObject = transform.gameObject;
             if (gameObject.activeSelf)
             {
                 ScrollItemKeyNavigation component = gameObject.GetComponent <ScrollItemKeyNavigation>();
                 component.enabled = true;
                 component.CheckVisibility();
                 RecycleListItem component2 = gameObject.GetComponent <RecycleListItem>();
                 if (component2)
                 {
                     component2.CheckVisibilty();
                 }
             }
         }
         ButtonGroupState.MuteActiveSound = false;
     }
 }
 private void OnSnapFinish()
 {
     this.isScrollMove = false;
     this.ScrollButton.CheckScrollPosition();
     foreach (Object obj in base.transform.GetChild(0))
     {
         Transform  transform  = (Transform)obj;
         GameObject gameObject = transform.gameObject;
         if (gameObject.activeSelf)
         {
             ScrollItemKeyNavigation component = gameObject.GetComponent <ScrollItemKeyNavigation>();
             component.enabled = true;
             component.CheckVisibility();
         }
     }
     ButtonGroupState.UpdateActiveButton();
 }
 private void Update()
 {
     if (base.enabled && (Mathf.Abs(this.draggablePanel.currentMomentum.y) > 0f || Mathf.Abs(this.draggablePanel.currentMomentum.x) > 0f))
     {
         this.isStartMove = true;
         if (this.isStartMove)
         {
             foreach (Object obj in base.gameObject.transform.GetChild(0))
             {
                 Transform  transform              = (Transform)obj;
                 GameObject gameObject             = transform.gameObject;
                 ScrollItemKeyNavigation component = gameObject.GetComponent <ScrollItemKeyNavigation>();
                 component.enabled = false;
                 component.CheckVisibility();
             }
         }
     }
 }