예제 #1
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();
    }
예제 #2
0
 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();
 }
예제 #3
0
 private static void ActiveButtonChanged(GameObject go, Boolean setSelect)
 {
     ButtonGroupState.PrevActiveButton = ((!ButtonGroupState.activeButtonList.ContainsKey(ButtonGroupState.activeGroup) || !(ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup] != (UnityEngine.Object)null)) ? PersistenSingleton <UIManager> .Instance.gameObject : ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup]);
     ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup] = go;
     if (setSelect)
     {
         UICamera.selectedObject = ButtonGroupState.activeButtonList[ButtonGroupState.activeGroup];
     }
     if (go == (UnityEngine.Object)null)
     {
         return;
     }
     ButtonGroupState.UpdateActiveButton();
     if (ButtonGroupState.PrevActiveButton != go && ButtonGroupState.activeGroup != Dialog.DialogGroupButton && !ButtonGroupState.muteActiveSound)
     {
         FF9Sfx.FF9SFX_Play(103);
     }
     UICamera.Notify(PersistenSingleton <UIManager> .Instance.gameObject, "OnItemSelect", go);
 }